You would have to ignore some initial certificate info output but some
variation on
echo "GET /version" | openssl s_client -connect test.example.com -crlf -ign_eof
-quiet
would be as pure OpenSSL as you can get…
Andrew
From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf O
> On Mar 30, 2019, at 4:28 PM, Ivan Medoedov wrote:
>
> Thanks, Viktor.
You're welcome. One important note about the example on the Wiki.
Since OpenSSL 1.0.2, there is internal support for certificate
name checks. You should not roll your own.
The SSL_set1_host(3) interface is present sinc
Thanks, Viktor.
On Sat, Mar 30, 2019 at 8:59 PM Viktor Dukhovni
wrote:
> On Sat, Mar 30, 2019 at 08:09:01PM +0100, Ivan Medoedov wrote:
>
> > You are right of course. I handle HTTP myself. A TLS connection example
> > will suffice.
> >
> > > > https://wiki.openssl.org/index.php/SSL/TLS_Client
>
On Sat, Mar 30, 2019 at 08:09:01PM +0100, Ivan Medoedov wrote:
> You are right of course. I handle HTTP myself. A TLS connection example
> will suffice.
>
> > > https://wiki.openssl.org/index.php/SSL/TLS_Client
That example can be simplified, but OpenSSL does not presently
provide a built-in hig
You are right of course. I handle HTTP myself. A TLS connection example
will suffice.
On Sat, Mar 30, 2019 at 7:53 PM Viktor Dukhovni
wrote:
> On Sat, Mar 30, 2019 at 04:02:55PM +0100, Ivan Medoedov wrote:
>
> > I've only managed to find this, but it seems to do too much for what I
> need:
> >
>
On Sat, Mar 30, 2019 at 04:02:55PM +0100, Ivan Medoedov wrote:
> I've only managed to find this, but it seems to do too much for what I need:
>
> https://wiki.openssl.org/index.php/SSL/TLS_Client
>
> Basically I need something like Go's http.Get("https://mysite.com/version";)
> to just get a one