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
95
votes
5 answers

Difference between self-signed CA and self-signed certificate

I'm not clear on the difference between a CA key and a certificate. Isn't a CA key simply a certificate? Let me try and clarify with an example. I have a client and a server. I'm only trying to validate my connection to my server and not trying…
Pace
  • 41,875
  • 13
  • 113
  • 156
95
votes
7 answers

Difference between SSL & TLS

According to wikipedia: http://en.wikipedia.org/wiki/Transport_Layer_Security Seems like TLS is a replacement to SSL, but most websites are still using SSL?
Howard
  • 19,215
  • 35
  • 112
  • 184
95
votes
16 answers

The client and server cannot communicate, because they do not possess a common algorithm - ASP.NET C# VB Visual Basic IIS TLS 1.0 / 1.1 / 1.2

I have an issue with a C# PayTrace Gateway. The below code was working fine until yesterday when I believe they turned off SSL3 due to the Poodle Exploit. When running the code below we got the following message. The remote server has forcefully…
TroySteven
  • 4,885
  • 4
  • 32
  • 50
95
votes
5 answers

Using a custom truststore in java as well as the default one

I'm writing an application in Java which connects to two web servers via HTTPS. One got a certificate trusted via the default chain of trust, the other uses a self signed certificate. Of course, connecting to the first server worked out of the box,…
user1785730
  • 3,150
  • 4
  • 27
  • 50
93
votes
1 answer

iOS 11: ATS (App Transport Security) no longer accepts custom anchor certs?

I am leasing a self signed certificate using NSMutableURLRequest and when the certificate is anchored using a custom certificate with SecTrustSetAnchorCertificates IOS 11 fails with the following error message: refreshPreferences: HangTracerEnabled:…
Wayne
  • 3,359
  • 3
  • 30
  • 50
93
votes
13 answers

Find out what resources are not going over HTTPS

I have an ASP.NET site which should transport completely over HTTPS. However, in Google Chrome I get a warning that the page includes resources which are not secure. How can I find out which those resources are and why they wouldn't be going over…
Alex
  • 75,813
  • 86
  • 255
  • 348
93
votes
5 answers

HTTPS for Amazon S3 static website

I want to host a HTTPS-only static website using Amazon S3 and CloudFront. Here's what I've done so far: Set up an S3 bucket for static website hosting and put my website files in it Created a CloudFront distribution and pointed it to the S3…
jamix
  • 5,484
  • 5
  • 26
  • 35
92
votes
5 answers

"Client network socket disconnected before secure TLS connection was established", node 10

When I send request to google api (using either axios or just https), e.g. https://www.googleapis.com/blogger/v3/blogs/2399953?key=... I always hit the "Client network socket disconnected before secure TLS connection was established" error. But if I…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
92
votes
4 answers

How to determine SSL cert expire date from the cert file itself(.p12)

If I have the actual file(.p12) and a Bash shell in Mac, how can I extract certificate and key file and also the certificate expiration date? assuming I have the csr(.p12), key files.
user4068530
91
votes
6 answers

Error: Public Key Certificate and Private Key doesn't match

I'm trying to install a GoDaddy SSL certificate on a new load balancer I'm setting up on Amazon AWS. I originally created the certificate at Godaddy using the keytool program for direct installation on a Glassfish 3.1 server (Amazon linux ami). I…
Felby
  • 4,045
  • 4
  • 26
  • 23
91
votes
4 answers

How to ignore invalid SSL certificate errors in Guzzle 5

This should be an easy thing to do. I can find plenty of references to how to do it in Guzzle 3, but they don't work in Guzzle 5. What I am doing so far: $this->client = new GuzzleClient(['defaults' => [ 'verify' => 'false' ]]); When I send a…
Gnuffo1
  • 3,478
  • 11
  • 39
  • 53
90
votes
3 answers

What is Keystore?

I have been getting: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target . . Caused by:…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
90
votes
6 answers

How to convert .pem into .key?

I already have purchased SSL certificate and i have received certificate and a .pem file as a private key? from the supplier; now i need to convert this .pem key into .key for bitnami Redmine Apache web server in order to make it work. How do I go…
user1644587
  • 909
  • 1
  • 7
  • 4
88
votes
5 answers

How to install mod_ssl for Apache httpd?

Ok So I installed Apache httpd a while ago and have recently come back to it to try setup SSL and get it serving several different tomcat servers. At the moment I have two completely separate Tomcat instances serving up to slightly different…
Nick Foote
  • 2,425
  • 9
  • 36
  • 47
88
votes
5 answers

Create SDDL failed, Error: 1332

I'm trying to use IIS Express with Visual Studio 2010 SP1. I'm following this tutorial. When I run this command. netsh http add urlacl url=https://Melnibone:443/ user=everyone I get this message: Create SDDL failed, Error: 1332 What's happening?
VansFannel
  • 45,055
  • 107
  • 359
  • 626