[openssl-users] [EXTERNAL] How do I connect to this server

Sands, Daniel dnsands at sandia.gov
Fri Apr 21 20:51:25 UTC 2017


On Fri, 2017-04-21 at 16:09 -0400, Jeff Archer wrote:
> I have a server that requires that username and password be used as
> https://username:password@server.com
> 
> 
> How do I specify this username and password when using SSL_connect()?

You don't.  The username and password are encoded into the request
header just like with HTTP, after the connection and handshake are done.
That's separate from the TLS transport.

You might consider a library like CURL, which handles both the TLS and
the HTTP, if you want to save on devel time.



More information about the openssl-users mailing list