Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Use the public_key API; not the helper modules.
  • Loading branch information
Tim Fletcher committed Mar 20, 2009
1 parent 41ead73 commit 09857076a1cb0963eacc2f46495bb22b9c6ef8db
Showing 1 changed file with 1 addition and 1 deletion.
@@ -20,7 +20,7 @@ to_binary(Term) when is_binary(Term) ->

public_key(Path) when is_list(Path) ->
{ok, [{cert, DerCert, not_encrypted}]} = public_key:pem_to_der(Path),
{ok, Cert} = pubkey_cert_records:decode_cert(DerCert, otp),
{ok, Cert} = public_key:pkix_decode_cert(DerCert, otp),
public_key(Cert);
public_key(#'OTPCertificate'{tbsCertificate=Cert}) ->
public_key(Cert);

0 comments on commit 0985707

Please sign in to comment.