diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-02-25 16:01:14 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-02-25 16:01:14 +0100 |
commit | 4312e98aad7aaf1d2bc43b3e0ef0ace5a5788c5f (patch) | |
tree | 6262d96a0a56e939d6091dfee5e99b2c6754da5f | |
parent | 2cf60c61faf8f22707ecc8e59a4cac0f8e92ef5b (diff) |
Add debug logging.
Trying to figure out why public_key:verify isn't found in docker images.
-rw-r--r-- | src/x509.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x509.erl b/src/x509.erl index c815ca4..96a8ea2 100644 --- a/src/x509.erl +++ b/src/x509.erl @@ -112,6 +112,11 @@ verify(Cert, DerCert, % Certificate to verify. public_key:der_decode(KeyType, Key0) end, + lager:debug("DigestOrPlainText: ~p", [DigestOrPlainText]), + lager:debug("DigestType: ~p", [DigestType]), + lager:debug("Signature: ~p", [Signature]), + lager:debug("IssuerKey: ~p", [IssuerKey]), + %% Verify the signature. public_key:verify(DigestOrPlainText, DigestType, Signature, IssuerKey). |