Open unstoppableHan opened 7 years ago
This is an issue with your cert. If you haven't updated the cert to have a CN of your IP address, you'll get the handshake error.
If you update your cert, you should find that it works. You'll of course still need to make sure that both client and server are also configured to use the IP address.
I am having the same issue, able to provide more details on how to update the cert for my IP address?
@weeyongjun Save the private key to key.pem, and then you can re-generate the certificate using this command:
openssl req -x509 -days 365 -key key.pem -out cert.pem
Paste the content of cert.pem into self_signed_cert
.
It seems this is not an issue and should be closed.
I'm trying to configure TLS, but VS2015 will not compile set_ssl_context_callback. How can I access this function?
@Jigglebizz Check out cpprest/http_listener.h. SSL support is explicitly disabled on Windows. So it is probably not ready for Windows.
@adah1972 I figured out my issue - SSL is configured through the application using http_listener_config on *nix. On Windows, SSL Certs are managed by the operating system, hence the exclusion in casablanca Windows code. I followed this guide:
http://ib-krajewski.blogspot.com/2015/09/https-support-for-casablanca-server-and.html
And was able to get TLS working!
Hello,
I am exploring cpprestSDK with restweb server in c++ on ubuntu 16.04 host PC, I am able to perform request and response with HTTP protocol, but when I am trying to send the request using HTTPS protocol I am not able to get the response. would you please suggest how to configure restweb to listen HTTPS request. or how to add support for HTTPS in restweb server.
thanks, Amit Gondaliya.
Hello, for oauth 2.0 callback uri, I have used http_listener to setup, but seems the http_listener is NOT support the https.
when I used localaddress this
web::http::uri m_secure_uri(U("https://localhost:8888/"));
example code run very well, but when I put my ip address (192.168.1.42) there is failure to connect server exception with
I download lastest casablanca and test with boost 1.62 and openssl 1.0.2