<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Nur Text Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.NurTextZchn
        {mso-style-name:"Nur Text Zchn";
        mso-style-priority:99;
        mso-style-link:"Nur Text";
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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 bgcolor="white" lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">this is the output of „-dates“:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">C:\Program Files\OpenVPN\bin>openssl.exe x509 -dates -subject -noout -in ..\config\SSL_HUG1@l1139218.vt-security.de\l1139218.vt-security.de.ca.crt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">notBefore=Oct 22 13:28:29 2009 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">notAfter=Mar  8 13:28:29 2037 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">subject=C = de, L = Dortmund, O = Versatel, CN = Versatel VPN CA, emailAddress = admin@vt-security.de<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoPlainText">Would it be OK if I send the crt file to only your mail adress? I don't feel save by posting it to the mailing list ;-)?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Wolfgang<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext;mso-fareast-language:DE">Von:</span></b><span style="color:windowtext;mso-fareast-language:DE"> Jan Just Keijser <janjust@nikhef.nl>
<br>
<b>Gesendet:</b> Montag, 4. März 2019 10:07<br>
<b>An:</b> Wolfgang Knauf <WKnauf@hg-online.de>; openssl-users@openssl.org<br>
<b>Betreff:</b> Re: OpenVPNGui 2.4.7 fails: format error in certificate's notAfter field<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi,<br>
<br>
On 04/03/19 09:08, Wolfgang Knauf wrote:<span style="mso-fareast-language:DE"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I first asked this question in the OpenVPNGui forum, and they redirected me to here: OpenVPNGui 2.4.6 works with a customers server certificate, but it fails when using 2.4.7.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Here is the thread in the OpenVPNGui forum: <a href="https://forums.openvpn.net/viewtopic.php?f=24&t=27976">
https://forums.openvpn.net/viewtopic.php?f=24&t=27976</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The error is:<o:p></o:p></p>
<p class="MsoNormal">Thu Feb 28 08:48:50 2019 VERIFY ERROR: depth=0, error=<b>format error in certificate's notAfter field</b>: C=de, L=Dortmund, O=Versatel, CN=ASG_1, emailAddress=...<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The certificate has those fields:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">        Validity</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">            Not Before: Oct 22 13:28:29 2009 GMT</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">            Not After : Mar  8 13:28:29 2037 GMT</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The customer provided us with a „…..ca.crt“ file, a „….user.crt“ file and a „user.key“ file. But I fear it is not smart to post those files in the internet ;-).<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="mso-fareast-language:DE">you can safely post the client.crt file - it is public info and useless without the key file. 
<br>
<br>
Having said that, I just created a certificate set to expire on Mar 9 2037 and it passed the following command:<br>
  c:\program files\openvpn\bin\openssl x509 -dates -subject -noout -in mycert.crt<br>
<br>
can you run the same command on the failing certificate?<br>
<br>
HTH,<br>
<br>
JJK / Jan Just Keijser<o:p></o:p></span></p>
</div>
</body>
</html>