summaryrefslogtreecommitdiff
path: root/src/x509.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-02-25 16:01:14 +0100
committerLinus Nordberg <linus@nordberg.se>2015-02-25 16:01:14 +0100
commit4312e98aad7aaf1d2bc43b3e0ef0ace5a5788c5f (patch)
tree6262d96a0a56e939d6091dfee5e99b2c6754da5f /src/x509.erl
parent2cf60c61faf8f22707ecc8e59a4cac0f8e92ef5b (diff)
Add debug logging.
Trying to figure out why public_key:verify isn't found in docker images.
Diffstat (limited to 'src/x509.erl')
-rw-r--r--src/x509.erl5
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).