Questions tagged [ssl]

Secure Sockets Layer (SSL) is a cryptographic protocol, now superseded by Transport Layer Security (TLS) that provides secure communications over the Internet. Often, SSL is used as a blanket term and refers to both the SSL protocol and the Transport Layer Security (TLS) protocol. The most recent version of the protocol is TLS version 1.3, specified by the IETF in RFC 8446.

'Secure Sockets Layer' was originally a comp.sources Usenet post in the 1980s, using a fairly primitive security protocol. Netscape Communication Corp pioneered the current SSL protocol, in SSL 2.0, the first version deployed, followed by SSL 3.0. At that point the IETF decided to standardize on this protocol, so RFC 2246 defined the next version of this protocol. There was some uncertainty over the intellectual property rights to the SSL name so the IETF chose the name Transport Layer Security (TLS). Today the names SSL and TLS are essentially synonyms. However, if you refer to a specific version you should include the correct name, e.g SSL 3.0 or TLS 1.1. As a progression it goes SSL 2.0 < SSL 3.0 < TLS 1.0 < TLS 1.1 < TLS 1.2 < TLS 1.3, where "<" means "precedes".

Current security standards forbid running any SSL version or TLS 1.0 (due to their various flaws). It is recommended to run only TLS 1.2 and TLS 1.3.

TLS was originally developed to run above a connection-oriented protocol, i.e. TCP. Later, TLS modified to run over connectionless protocols like UDP by way of Datagram Transport Layer Security (DTLS).

TLS is a mature protocol, now more than 20 years old, with vast support on a multitude of clients, servers, platforms, and libraries. However, there is some complexity around the cipher suites, the TLS Extensions, and the certificate validation, that regularly introduced reasons ending in non-interoperability. Perhaps the most well-known protocol that uses TLS is the HTTPS protocol, which is the HTTP protocol running over TLS.

Stackoverflow is for programming questions, and that is also true for questions tagged with TLS or SSL. In particular, server configuration questions are off-topic and instead should be asked on ServerFault.

50662 questions
15
votes
2 answers

How do I get the private key for a GoDaddy certificate so I can install it on Ubuntu 14+?

The cert I have from StartSSL comes with a key file. But from GoDaddy, I get only the 2 .crt files. GoDaddy's instructions are for CentOS and explicitly do not work for Ubuntu. How do I export the private key ... or get it from somewhere ... so I…
Daniel Wilson
  • 382
  • 3
  • 4
  • 14
15
votes
4 answers

AWS: Custom SSL certificate option is disabled in CloudFront, but I created a SSL certificate using AWS Certificate Manager

I am creating a SSL certificate for my amazon S3 static website. I created a SSL certificate using Certificate Manager for my domain and its status is 'Issued'. I am creating a CloudFront Distribution, but the Custom SSL Certificate option is…
15
votes
1 answer

"The SSL certificate contains a common name (CN) that does not match the hostname." in VSTS Deployment

I am using VSTS to deploy to an Azure VM. In my release definition, I receive the following error when trying to copy files over: The SSL certificate contains a common name (CN) that does not match the hostname. For more information, see the …
srbrills
  • 1,451
  • 2
  • 13
  • 33
15
votes
5 answers

How to get the error string in openssl?

I am using openssl to establish the TLS connection with the remote server. Here are the code snippets: if ((ret = SSL_connect(c->ssl)) <= 0) { ret = SSL_get_error(c->ssl, ret); if((err = ERR_get_error())) { SSL_load_error_strings(); …
AllenHu
  • 561
  • 2
  • 5
  • 13
15
votes
4 answers

Remove www site-wide, force https on certain directories and http on the rest?

Firstly, I would like to remove the www. from my domain name http://www.example.com => http://example.com I would also like for certain directories to be secure (https), while the rest remain http http://example.com/login =>…
Anthony
  • 657
  • 2
  • 10
  • 21
15
votes
3 answers

javax.net.ssl.SSLHandshakeException: Connection closed by peer at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)

before api level 24 my code is working fine but it is giving me error on api level 24( 7.0 Nougat). I am not getting what's going wrong with my code. First Approach is here :
Gulashan Faye
  • 194
  • 1
  • 1
  • 7
15
votes
1 answer

Adding SSL certificates to a mysql docker container

I am building a docker container for a django application, which uses nginx and uwsgi. For the Database the application is using mysql, which is located in a different container and both of them are link with a docker-compose.yml file: version:…
dsax7
  • 1,333
  • 22
  • 36
15
votes
1 answer

Generating and installing SSL certificates

I feel like I cracked the atom when I successfully was able to add my custom SSL certificate to Android 6 emulator (I made persistent change to system.img file). But the browser is not recognizing it any way. I followed this awesome tutorial, and I…
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
15
votes
1 answer

How to get around assignment copies lock value to tr: net/http.Transport contains sync.Mutex

When I run go vet the following error is output: client.go:2345: assignment copies lock value to tr: net/http.Transport contains sync.Mutex exit status 1 client.go:2345: var tr http.Transport // Setup TLS if clientConfig.TLSEnabled { tr =…
user1529891
15
votes
1 answer

How can I send an email using python logging's SMTPHandler and SSL

I'm developing a flask app in which I'd like to send error level logging to an email address. I tried setting up the typical error handler: mail_handler = SMTPHandler(mailhost=(app.config['MAIL_SERVER'], app.config['MAIL_PORT']), …
thclark
  • 4,784
  • 3
  • 39
  • 65
15
votes
1 answer

How to do HTTPS GET with client certificate in node

I can use curl for making a GET request -> `curl -v https://example.com:82/v1/api?a=b` -E client_cert.pem:password How can I use same in node. I tried request, superagent but not able to pass certificate. Thanks in advance!
rohitkadam19
  • 1,734
  • 5
  • 21
  • 39
15
votes
1 answer

SSL: WRONG_VERSION_NUMBER when setting up public Juypter server

I'm in the process of setting up a Juypter server to host my notebooks on. In /home/user/.jupyter/notebook_configuration.py c.NotebookApp.certfile = u'/home/user/.jupyter/mycert.pem' c.NotebookApp.keyfile = u'/home/user/.jupyter/mykey.key' And if I…
AlexLordThorsen
  • 8,057
  • 5
  • 48
  • 103
15
votes
4 answers

Does the nginx HTTP/2 module support Server Push?

I'm planning to upgrade my nginx to 1.9.6 which supports HTTP/2. Have nginx implemented HTTP/2 server push? ref: https://ma.ttias.be/service-side-push-http2-nghttp2/
Merik C.
  • 253
  • 1
  • 3
  • 8
15
votes
3 answers

Ignore SSL Certificate in a Servlet

I am getting the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to…
Tim
  • 3,910
  • 8
  • 45
  • 80
15
votes
3 answers

App Engine: The private key you've selected does not appear to be valid

I'm trying to add a new SSL certificate to my Google App Engine account, but after following all the steps in the manual I kept getting this error uploading the Unencrypted PEM encoded RSA private key: The private key you've selected does not…
Javier Marín
  • 2,166
  • 3
  • 21
  • 40