<div dir="ltr">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.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 9, 2020 at 1:25 PM Leonard B <<a href="mailto:leonard.boyce@lucidlayer.com">leonard.boyce@lucidlayer.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Benoit,<br>
<br>
This may be helpful for pulling basic cert info<br>
<br>
<a href="https://gist.github.com/leonardb/a4dc25651ba3682966bafe5c7d1f575c" rel="noreferrer" target="_blank">https://gist.github.com/leonardb/a4dc25651ba3682966bafe5c7d1f575c</a><br>
<br>
Leonard<br>
<br>
On Mon, Mar 9, 2020 at 8:16 AM Wolf, Dave <<a href="mailto:dave.wolf@siemens.com" target="_blank">dave.wolf@siemens.com</a>> wrote:<br>
><br>
> Hi Marc,<br>
><br>
><br>
><br>
> 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?<br>
><br>
><br>
><br>
> Thanks!<br>
><br>
> Dave<br>
><br>
><br>
><br>
> From: erlang-questions <<a href="mailto:erlang-questions-bounces@erlang.org" target="_blank">erlang-questions-bounces@erlang.org</a>> On Behalf Of Marc Worrell<br>
> Sent: Monday, March 9, 2020 3:58 AM<br>
> To: Benoit Chesneau <<a href="mailto:bchesneau@gmail.com" target="_blank">bchesneau@gmail.com</a>><br>
> Cc: Erlang Questions <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br>
> Subject: Re: how to retrieve SSL certificate informations?<br>
><br>
><br>
><br>
> Hi Benoît,<br>
><br>
><br>
><br>
> 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.<br>
><br>
><br>
><br>
> - Marc<br>
><br>
><br>
><br>
> On 9 Mar 2020, at 07:25, Marc Worrell <<a href="mailto:marcw@pobox.com" target="_blank">marcw@pobox.com</a>> wrote:<br>
><br>
><br>
><br>
> Hi Benoit,<br>
><br>
><br>
><br>
> Maybe this helps:<br>
><br>
><br>
><br>
> <a href="https://github.com/zotonic/zotonic/blob/master/apps/zotonic_core/src/support/z_ssl_certs.erl#L313" rel="noreferrer" target="_blank">https://github.com/zotonic/zotonic/blob/master/apps/zotonic_core/src/support/z_ssl_certs.erl#L313</a><br>
><br>
><br>
><br>
> Cheers, Marc<br>
><br>
> Sent from my iPhone<br>
><br>
><br>
><br>
> On 9 Mar 2020, at 00:34, Benoit Chesneau <<a href="mailto:bchesneau@gmail.com" target="_blank">bchesneau@gmail.com</a>> wrote:<br>
><br>
> <br>
><br>
> 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.<br>
><br>
><br>
><br>
> 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?<br>
><br>
><br>
><br>
> Benoît<br>
><br>
><br>
><br>
><br>
><br>
><br>
</blockquote></div>