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
4 answers

How to connect a SSL socket through a HTTP proxy?

I'm trying to use Java (Android) to connect to a server with a SSL socket. Please note that this is not HTTP data. This is proprietary protocol with a mix of text and binary data. I want to relay that SSL connection through a HTTP proxy, but I am…
Eric
  • 19,525
  • 19
  • 84
  • 147
15
votes
4 answers

How to check if domain has SSL certificate or not?

Is is possible to get the details like if a domain (say www.example.com) is HTTPS ready? I need to validate some URLs, whether they have SSL certificate or not. I know, by using $_SERVER['HTTPS'] we can check our server details. but how can I…
Krishna Mohan
  • 1,503
  • 3
  • 22
  • 28
15
votes
7 answers

In Firefox, can I disable the "Website certified by an unknown authority" SSL certificate warning dialogs?

i.e. I just want them to be permanently accepted all the time.
someguy
  • 3,153
  • 3
  • 20
  • 10
15
votes
2 answers

"certificate verify failed" error when installing Ruby gems on Windows

I am using a Windows PC running 8.1 and working with Ruby Installer 2.1.5. While installing a gem I am getting a error: C:\> gem install bundle ERROR: Could not find a valid gem 'bundle' (>= 0), here is why: Unable to download data from…
Mahabub Islam Prio
  • 1,075
  • 11
  • 25
15
votes
2 answers

HttpClient fails with Handshake Failed in Android 5.0 Lollipop

DefaultHttpClient in Android 5.0 Lollipop seems to be broken. It can not set the connection to some sites that were successfully set by previous versions of Android. For example I try to connect to https://uralsg.megafon.ru //Create httpclient like…
15
votes
3 answers

Getting "The remote certificate is invalid according to the validation procedure" when SMTP server has a valid certificate

This seems a common error but while I've found a work-around (see below) I can't pin down the reason I'm getting it in the first place. I am writing SMTP functionality into our application and I'm attempting to add SSL functionality to the working…
RosieC
  • 649
  • 2
  • 11
  • 27
15
votes
2 answers

Variety of HTTPs errors while communicating to server from Android App

UPDATE: 04 Jan 2015 I still have these issues. Users of our app have increased and I see all kind of network errors. Our app sends out emails everytime there is a network related error on app. Our app does a financial transactions - so…
Wand Maker
  • 18,476
  • 8
  • 53
  • 87
15
votes
5 answers

Cross-Origin Request Blocked on

I have a WordPress site and I am getting an error from my godaddy seal. I have the html for the verify image in a widget section of the footer of my site. When I reload the page and check firebug I am getting this error in the…
Musik8101
  • 575
  • 1
  • 5
  • 14
15
votes
6 answers

PHP https check with flexible ssl (cloudflare), how to do?

Background: Website (example.com), dns setup through cloudflare pro plan, this offers "flexible ssl" (read here), which means that ssl only exists between client and cloudflare and not between cloudflare and server, thus not needing dedicated ip and…
decay
  • 612
  • 6
  • 19
15
votes
1 answer

mac verify failure using Node with ssl certificate

as specified in the Node api doc I tried the first one with a self created and signed cert using openssl. Everything was going fine except the fact that the couldn't test the client side from an android because it was needed a ca certificate. When I…
eKelvin
  • 921
  • 1
  • 9
  • 25
15
votes
2 answers

Apache - Init: Can't open server private key file

I am enabling ssl on my apache running on localhost. I generated a self signed certificate and put it in a usual place: [david@david web]$ ll /etc/ssl/certs/ ... -rwxrwxrwx. 1 david david 977 Mar 7 13:18 localhost.crt -rwxrwxrwx. 1 david david …
David Williams
  • 8,388
  • 23
  • 83
  • 171
15
votes
4 answers

How to import self-signed SSL certificate to Volley on Android 4.1+

I develop android application which uses Volley. All communication is done via HTTPS connection. Because I test it on local environment, I use self-signed certificates for Tomcat. Before, I had only android 2.3 and 3.0 devices. Now I've got also 4.1…
15
votes
6 answers

Java 7 support of AES-GCM in SSL/TLS?

According to Java 7 documentation as well as third party vendors, it appears Java 7 should support AES-GCM suites: ibm java 7 java 7 ssl doc I was hitting some errors in negotiation between client and server unable to negotiate a cipher due to…
user2403018
  • 297
  • 1
  • 4
  • 12
15
votes
4 answers

python easy_install fails with SSL certificate error for all packages

Goal: I'm on RedHat 5 and trying to install the latest python and django for a web app. I successfully altinstalled python27 and easy_install, and wget with openssl. Problem: However now that I try to get anything from pypi.python.org I get the…
dlite922
  • 1,924
  • 3
  • 24
  • 60
15
votes
3 answers

Lifetime of the SSL session in https

We have an engaged (but friendly) discussion between coworkers about the life time of the SSL session underlying a https communication. When I establish a https connection to a server using a normal browser the underlying ssl creates a session…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348