how to retrieve SSL certificate informations?

Benoit Chesneau bchesneau@REDACTED
Mon Mar 9 17:32:14 CET 2020


I think a library that allows manipulation of certificate infos and their
creation would make sense indeed.... I can see a lot of usage for it.

On Mon, Mar 9, 2020 at 1:25 PM Leonard B <leonard.boyce@REDACTED>
wrote:

> Hi Benoit,
>
> This may be helpful for pulling basic cert info
>
> https://gist.github.com/leonardb/a4dc25651ba3682966bafe5c7d1f575c
>
> Leonard
>
> On Mon, Mar 9, 2020 at 8:16 AM Wolf, Dave <dave.wolf@REDACTED> wrote:
> >
> > Hi Marc,
> >
> >
> >
> > This is a very timely topic in a current project I’m working on at the
> moment.  We need to determine the expiration date of a certificate as well
> as generate a self-signed one, which I see this module does as well.  Could
> you please isolate it in a separate library so we can include it in our
> list of OSS components?
> >
> >
> >
> > Thanks!
> >
> > Dave
> >
> >
> >
> > From: erlang-questions <erlang-questions-bounces@REDACTED> On Behalf
> Of Marc Worrell
> > Sent: Monday, March 9, 2020 3:58 AM
> > To: Benoit Chesneau <bchesneau@REDACTED>
> > Cc: Erlang Questions <erlang-questions@REDACTED>
> > Subject: Re: how to retrieve SSL certificate informations?
> >
> >
> >
> > Hi Benoît,
> >
> >
> >
> > If the below is what you are looking for, then I can also isolate it in
> a separate library app for inclusion in your projects.
> >
> >
> >
> > - Marc
> >
> >
> >
> > On 9 Mar 2020, at 07:25, Marc Worrell <marcw@REDACTED> wrote:
> >
> >
> >
> > Hi Benoit,
> >
> >
> >
> > Maybe this helps:
> >
> >
> >
> >
> https://github.com/zotonic/zotonic/blob/master/apps/zotonic_core/src/support/z_ssl_certs.erl#L313
> >
> >
> >
> > Cheers, Marc
> >
> > Sent from my iPhone
> >
> >
> >
> > On 9 Mar 2020, at 00:34, Benoit Chesneau <bchesneau@REDACTED> wrote:
> >
> > 
> >
> > How can I get informations about an SSL certificate ? Specifically I am
> looking for a way to retrieve the issuer, subject, and the  serial number
> of the certificate.
> >
> >
> >
> > The record I get from decoding using public_key functions is hard to
> parse so any help is welcome. Maybe there is already an api/app somewhere
> for it?
> >
> >
> >
> > Benoît
> >
> >
> >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200309/e04921fd/attachment.htm>


More information about the erlang-questions mailing list