<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>You will need to be a lot more specific - this works fine</div><div><br></div><div><br></div><div><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">openssl s_client -connect localhost:443 | openssl x509 -noout -text</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Can't use SSL_get_servername</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">depth=0 C = US, ST = TX, L = Somewhere, O = MarkHack, OU = Test, CN = fakeserver.com</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">verify error:num=18:self signed certificate</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">verify return:1</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">depth=0 C = US, ST = TX, L = Somewhere, O = MarkHack, OU = Test, CN = fakeserver.com</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">verify return:1</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Certificate:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Data:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Version: 3 (0x2)</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Serial Number:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">5d:72:e6:0c:24:3f:97:7f:66:09:f6:a5:f7:f8:96:95:ed:cb:26:59</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><b>Signature Algorithm: sha512WithRSAEncryption</b></font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Issuer: C = US, ST = TX, L = Somewhere, O = MarkHack, OU = Test, CN = fakeserver.com</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Validity</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Not Before: Apr 22 14:22:50 2021 GMT</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Not After : Apr 22 14:22:50 2022 GMT</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Subject: C = US, ST = TX, L = Somewhere, O = MarkHack, OU = Test, CN = fakeserver.com</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Subject Public Key Info:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Public Key Algorithm: rsaEncryption</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">RSA Public-Key: (4096 bit)</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Modulus:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">00:b8:c0:72:0e:81:ec:49:fd:6d:06:c2:15:1c:a7:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font color="#000000" size="2"><span style="caret-color: rgb(0, 0, 0); white-space: normal;">....</span></font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">cf:5c:cb</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Exponent: 65537 (0x10001)</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">X509v3 extensions:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">X509v3 Subject Key Identifier: </font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">7A:E4:80:D6:86:BF:03:BE:3C:16:C6:99:B7:66:BE:CE:52:F7:96:F2</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">X509v3 Authority Key Identifier: </font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">keyid:7A:E4:80:D6:86:BF:03:BE:3C:16:C6:99:B7:66:BE:CE:52:F7:96:F2</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">X509v3 Basic Constraints: critical</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">CA:TRUE</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">Signature Algorithm: sha512WithRSAEncryption</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">27:1e:c7:f4:7a:7e:43:39:1f:3d:8b:08:94:67:bf:9d:e9:38:</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">....<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"><font size="2" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;">a5:fb:21:9c:d7:f5:28:67</font><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); white-space: normal;"></div><div>On Thu, 2021-04-22 at 18:22 +0530, Vadivel P wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div>Hi All,</div><div dir="auto"><br></div><div dir="auto">Looking for the same support of SHA512. Do we have sha512 support in any open source ? Please let me know.</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Vadivel</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Apr 19, 2021, 13:15 preethi teekaraman <<a href="mailto:preethi.kavi17@gmail.com">preethi.kavi17@gmail.com</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Hi Openssl,<br><div><br></div><div>I'm creating sha512 self signed certificate for establishing connection between client and server(nginx server). </div><div>creating separate key, cert for server and root cert for client. </div><div>below is the link i followed for cert creation: </div><div><a href="https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309" target="_blank" rel="noreferrer">https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309</a><br></div><div><br></div><div>Issue faced : </div><div>There's no connection established and we cross-checked error log in server no error observed. </div><div><br></div><div><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Openssl version : OpenSSL 1.0.1f 6 Jan 2014</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">nginx version: nginx/1.4.6 (Ubuntu)</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">OS version </p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">No LSB modules are available.</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Distributor ID:    Ubuntu</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Description:       
Ubuntu 14.04.5 LTS</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Release:              
14.04</p>

<p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Codename:        trusty</p><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">is there any link or commands to follow while creating cert for sha512. ?</p><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Regards,</p><p class="MsoNormal" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif">Preethi Teekaraman.</p></div></div>
</blockquote></div></div></div>
</blockquote></body></html>