[erlang-questions] Generating a certificate from a CSR with public_key

Andreas Schultz aschultz@REDACTED
Wed Jun 18 10:56:48 CEST 2014


Hi,

----- Original Message -----
> Hi there,
> 
> I'm trying to work out how I can generate and sign a certificate from a
> certificate signing request (CSR) using pure Erlang. It doesn't look as if
> the public_key application has support for this.
> 
> Does anyone have pointers for doing this? (I know how to do this with
> openssl).

There is not one-stop support for it, but it should be doable.

lib/public_key/test/erl_make_certs.erl has code that generates certificates.

You would have to parse the CSR (lib/public_key/src/pubkey_pem.erl seems to
have support for it) and construct the newly signed certificate with the
code from erl_make_certs.

Andreas

> 
> Thanks,
> 
> Rudolph
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> 

-- 
-- 
Dipl. Inform.
Andreas Schultz



More information about the erlang-questions mailing list