<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">HI Marc,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’d like to again express our thanks for taking the time to do this!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Dave.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Marc Worrell <marc@worrell.nl> <br>
<b>Sent:</b> Thursday, March 12, 2020 6:52 AM<br>
<b>To:</b> Wolf, Dave (SI SSP R&D ATL) <dave.wolf@siemens.com><br>
<b>Cc:</b> Benoit Chesneau <bchesneau@gmail.com>; Leonard B <leonard.boyce@lucidlayer.com>; Roger Lipscombe <roger@differentpla.net>; Erlang Questions <erlang-questions@erlang.org><br>
<b>Subject:</b> Re: how to retrieve SSL certificate informations?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have isolated and slightly reworked the SSL routines.<o:p></o:p></p>
<div>
<p class="MsoNormal">There is now a Hex package here:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhex.pm%2Fpackages%2Fzotonic_ssl&data=02%7C01%7Cdave.wolf%40siemens.com%7Ce1474a20bfef4f21758708d7c6739a1b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637196072118762098&sdata=GG7LkZaaWfjapn0NOOD1%2BggZL%2B43Usuoxnu0Zda3Ndk%3D&reserved=0">https://hex.pm/packages/zotonic_ssl</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please add pull requests for any additional feature or cert decoding info!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers, Marc<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 9 Mar 2020, at 18:44, Wolf, Dave <<a href="mailto:dave.wolf@siemens.com">dave.wolf@siemens.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Marc,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for doing this; we appreciate your efforts!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Dave.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b>From:</b><span class="apple-converted-space"> </span>Benoit Chesneau <<a href="mailto:bchesneau@gmail.com">bchesneau@gmail.com</a>><span class="apple-converted-space"> </span><br>
<b>Sent:</b><span class="apple-converted-space"> </span>Monday, March 9, 2020 12:36 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>Marc Worrell <<a href="mailto:marc@worrell.nl">marc@worrell.nl</a>><br>
<b>Cc:</b><span class="apple-converted-space"> </span>Leonard B <<a href="mailto:leonard.boyce@lucidlayer.com">leonard.boyce@lucidlayer.com</a>>; Roger Lipscombe <<a href="mailto:roger@differentpla.net">roger@differentpla.net</a>>; Wolf, Dave (SI SSP R&D ATL)
<<a href="mailto:dave.wolf@siemens.com">dave.wolf@siemens.com</a>>; Erlang Questions <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br>
<b>Subject:</b><span class="apple-converted-space"> </span>Re: how to retrieve SSL certificate informations?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">pretty cool :) Thanks for it!<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">On Mon, Mar 9, 2020 at 5:35 PM Marc Worrell <<a href="mailto:marc@worrell.nl">marc@worrell.nl</a>> wrote:<o:p></o:p></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">As there is some interest in such a library I will start with splitting off code from the Zotonic code base into a separate application.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">I can do that tomorrow.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Then we can start adding extra functionality afterwards.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Cheers, Marc<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">On 9 Mar 2020, at 17:32, Benoit Chesneau <<a href="mailto:bchesneau@gmail.com" target="_blank">bchesneau@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">On Mon, Mar 9, 2020 at 1:25 PM Leonard B <<a href="mailto:leonard.boyce@lucidlayer.com" target="_blank">leonard.boyce@lucidlayer.com</a>> wrote:<o:p></o:p></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi Benoit,<br>
<br>
This may be helpful for pulling basic cert info<br>
<br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fleonardb%2Fa4dc25651ba3682966bafe5c7d1f575c&data=02%7C01%7Cdave.wolf%40siemens.com%7Ce1474a20bfef4f21758708d7c6739a1b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637196072118762098&sdata=cSHaqL1eoky0R0KJYwQlXSQC1Xj8%2FSWcjn0NXwJlvXU%3D&reserved=0" 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>
><span class="apple-converted-space"> </span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzotonic%2Fzotonic%2Fblob%2Fmaster%2Fapps%2Fzotonic_core%2Fsrc%2Fsupport%2Fz_ssl_certs.erl%23L313&data=02%7C01%7Cdave.wolf%40siemens.com%7Ce1474a20bfef4f21758708d7c6739a1b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637196072118772095&sdata=6av%2BhYgM4YEPKcE%2BAAnWzRG4TwIORYUHA6RK2WLWHa0%3D&reserved=0" 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>
><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>