RE: The smallest minimal example of an HTTPS GET request with openssl

2019-03-31 Thread Porter, Andrew
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

Re: The smallest minimal example of an HTTPS GET request with openssl

2019-03-30 Thread Viktor Dukhovni
> 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

Re: The smallest minimal example of an HTTPS GET request with openssl

2019-03-30 Thread Ivan Medoedov
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 >

Re: The smallest minimal example of an HTTPS GET request with openssl

2019-03-30 Thread Viktor Dukhovni
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

Re: The smallest minimal example of an HTTPS GET request with openssl

2019-03-30 Thread Ivan Medoedov
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: > > >

Re: The smallest minimal example of an HTTPS GET request with openssl

2019-03-30 Thread Viktor Dukhovni
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