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

SSL Configuration on Maven Tomcat Plugin

I am trying to develop a Wicket app. It's login page must open with SSL. So I did some coding. But I can't find to configure the maven tomcat 7 plugin for SSL. I created keystore file properly.Using keytool -genkey -alias tomcat -keyalg RSA…
yyy
  • 437
  • 2
  • 9
  • 23
15
votes
7 answers

2-way SSL for web services on GAE (java)

We need to implement two-way SSL on Google App Engine, where we send out web service requests using JAX-WS to a server requring 2-way SSL authentication. How can we set up 2-way SSL for our outgoing web service requests? We know that javax.net.ssl*…
Cuga
  • 17,668
  • 31
  • 111
  • 166
15
votes
3 answers

SSL authentication by comparing certificate fingerprint?

Question for all the SSL experts out there: We have an embedded device with a little web server on it, and we can install our own SSL self-signed certificates on it. The client is written in .NET (but that doesn't matter so much). How can I…
chris166
  • 4,769
  • 4
  • 24
  • 25
15
votes
1 answer

Java cipher suites

I'm trying to work out the order that cipher suites are returned using SSLSocketFactory.getSupportedCipherSuites() - it seems to differ between Java 1.6 & Java 1.7. I thought this would be easy to determine but have run into a few problems. First,…
Amadeus1756
  • 193
  • 1
  • 1
  • 6
15
votes
3 answers

Using HTTPS and httpWebRequest

I am sending httpwebrequests to the paypal api server and this uses https. I did the normal things that you normally do with http requests, and it worked. Do I need to do anything special to properly use https, or is specifying https in the request…
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101
15
votes
2 answers

Nginx config for WSS

I am having a problem in connecting through WSS to my server. I followed the following article to setup nginx with websockets: http://www.letseehere.com/reverse-proxy-web-sockets The following is my nginx config which serves a Play!…
Sameer Segal
  • 21,813
  • 7
  • 42
  • 56
14
votes
1 answer

SSLSocketFactory in java

What role does SSLSocketFactory class in java play when using HttpsURLConnection? The java docs is not of much help. Are there any ways to bind the keystore and the truststore to with the sslsocketfactory object, to make it point to the keystore…
Ashwin
  • 12,691
  • 31
  • 118
  • 190
14
votes
2 answers

SSL Failures - Receiving SSL/TLS exception when using HttpWebRequest with client certificate

I have a Windows 2008 Server with IIS 7 which using a .NET C# Application to send requests to PayPal to process payments. A few months ago I installed a Certificate which was purchased by Verisign. After installation, I was able to run my WebClient…
Shawn J. Molloy
  • 2,457
  • 5
  • 41
  • 59
14
votes
3 answers

How to correctly send binary data over HTTPS POST?

I send binary data from client (Debian 6.0.3) to server (Windows Server 2003). To bypass most firewalls I use HTTPS POST. Client and server are implemented using Boost.Asio and OpenSSL. First I implemented the simplest possible version and it worked…
Andriy Tylychko
  • 15,967
  • 6
  • 64
  • 112
14
votes
1 answer

Is "SFTP" and "FTP over SSL" a same thing?

I need to write a program to send some files to an SFTP server. I googled, but found there is similar thing called "FTP over SSL". Are they the same?
Freewind
  • 193,756
  • 157
  • 432
  • 708
14
votes
4 answers

How to extract the domain name out of an X509Certificate object during SslStream.AuthenticateAsClient? (.NET4)

I have a RemoteCertificateValidationCallback function called by SslStream.AuthenticateAsClient, which is passed an X509Certificate object. I'd like to extract the name from that certificate, such that had I passed that string into…
billpg
  • 3,195
  • 3
  • 30
  • 57
14
votes
6 answers

Rails 3.1 Force Regular HTTP

Previously, I had been using ssl_requirement to give us fine grained control over which pages were served over ssl and which were served over plain http. According to the ssl_requirement's own wiki, it has been superseded by rails 3.1's Force SSL.…
ghempton
  • 7,777
  • 7
  • 48
  • 53
14
votes
3 answers

Using Gmails Outgoing SMTP from DELPHI(Indy) using TLS

I am using INDY to send Email using the SMTP client on port 25 with no problem. Now I need to send an Email using a Gmail account and for that I need to use TLS. Can anyone provide a simple sample on how to do that. Thanks
DRokie
  • 705
  • 2
  • 9
  • 20
14
votes
2 answers

Accessing apache on a vagrant sandbox using ssl (port forwarding)

I've built a vagrant/virtualbox web server as a development sandbox, and configured apache in the VM for ssl (on the default port 443, with a self-signed certificate). I've tested pages on the VM itself using curl curl -v -k…
Mark Baker
  • 209,507
  • 32
  • 346
  • 385
14
votes
4 answers

pymongo [SSL: CERTIFICATE_VERIFY_FAILED]: certificate has expired on Mongo Atlas

I am using MongoDB(Mongo Atlas) in my Django app. All was working fine till yesterday. But today, when I ran the server, it is showing me the following error on console Exception in thread django-main-thread: Traceback (most recent call last): …
Malina Dale
  • 153
  • 1
  • 3
  • 8
1 2 3
99
100