<div dir="ltr">HI, <div>         it started working after modification in OCSP_parse_url </div><div>         change is <b>highlighted</b> below and basically keeping [] brackets for ipv6 :</div><div>   </div><div>OCSP_parse_url   <br></div><div>  p = host;<br>    if (host[0] == '[') {<br>        /* ipv6 literal */<br><b>//        host++; </b><br>        p = strchr(host, ']');<br>        if (!p)<br>            goto parse_err;<br><b> //       *p = '\0';</b><br>        p++;<br>    }<br></div><div>   Is this the correct way to do so? </div><div><br></div><div>Thanks for your help Michael.</div><div><br></div><div>Thanks</div><div>Perumal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 3, 2020 at 8:40 PM Michael Wojcik <<a href="mailto:Michael.Wojcik@microfocus.com">Michael.Wojcik@microfocus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> From: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org" target="_blank">openssl-users-bounces@openssl.org</a>> On Behalf Of perumal v<br>
> Sent: Monday, 2 November, 2020 07:57<br>
<br>
> I tried openssl ocsp for ipv6 and got the error message for the OCSP.<br>
<br>
> openssl ocsp -url http://[2001:DB8:64:FF9B:0:0:A0A:285E]:8090/ocsp-100/ -issuer ...<br>
> Error creating connect BIO<br>
> 140416130504448:error:20088081:BIO routines:BIO_parse_hostserv:ambiguous host or<br>
> service:crypto/bio/b_addr.c:547:<br>
<br>
A quick look at the code suggests this is a bug in OpenSSL. OCSP_parse_url removes the square brackets from a literal IPv6 address in the URL, but BIO_parse_hostserv requires they be present. But I didn't look closely, so I'm not entirely sure that's the issue.<br>
<br>
> IPv6 address without the "[]" bracket.<br>
<br>
The square brackets are required by the URL specification. There's no point testing without them.<br>
<br>
--<br>
Michael Wojcik<br>
</blockquote></div>