From 4312e98aad7aaf1d2bc43b3e0ef0ace5a5788c5f Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 25 Feb 2015 16:01:14 +0100 Subject: Add debug logging. Trying to figure out why public_key:verify isn't found in docker images. --- src/x509.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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). -- cgit v1.1