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

Trust all SSL certificates in Java Playframework 2.2

I am trying to call a web-service(Which has self signed SSL certificate) in Play Framework Using the following function: public static play.libs.F.Promise webcall() { String feedUrl = "https://10.0.1.1/client/api"; final…
asvignesh
  • 787
  • 2
  • 6
  • 32
15
votes
2 answers

Generating a CSR for root domain (includes www or not?)

I am trying to set up SSL for the first time. I purchased my domain and SSL certificate from Gandi.net. Their docs say subdomain.example.com indicates the subdomain that you want to protect. This is the most important part. If you have a…
speg
  • 1,959
  • 6
  • 24
  • 34
15
votes
3 answers

How can I have multiple SSL certificates for a Java server

I have an in-house HTTP server written in Java; full source code at my disposal. The HTTP server can configure any number of web sites, each of which will have a separate listen socket created…
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
15
votes
2 answers

How to set the intermediate certificates on GAE?

I had bought a SSL certification for my custom domain and set up to my GAE project. It worked fine with most browsers until the new Firefox version comes out. Firefox denied my SSL certification. I had used the SSL Checker, it gave me the…
Theon Lin
  • 330
  • 3
  • 8
15
votes
1 answer

Multiple SSL domains to one Azure Cloud Service Site

We have a web application running on Windows Azure Cloud Service at ourapp.cloudapp.net. We created a CName record from my.ourapp.com to point to this cloud service. This domain is secured with SSL. We now have a requirement to allow a different…
Brian Daly
  • 587
  • 4
  • 15
15
votes
2 answers

Verify Incoming SSL Using OpenSSL S_Server

We are wanting to use two way certificate authentication using open ssl. When we open s_server as follows, the client is able to connect to my server: openssl s_server -accept 12345 -cert our-cert.pem (our-cert.pem is our certificate.) This works…
HenryHayes
  • 368
  • 2
  • 4
  • 13
15
votes
3 answers

SSL Pinning with AFNetworking

In my app I'm using https and a self-signed SSL certificate to secure the connection between my client and the server. I was trying to have the AFNetworking library do SSL Pinning on a copy of my certificate bundled in the app. In the…
BigLex
  • 2,978
  • 5
  • 19
  • 27
15
votes
2 answers

php curl: SSL_VERIFYPEER option doesn't have effect

I've got this piece of code to launch queries with curl: function curl_query($full_url, $username, $password, $payload) { $additionalHeaders = ""; $process = curl_init($full_url); curl_setopt($process, CURLOPT_HTTPHEADER,…
facha
  • 11,862
  • 14
  • 59
  • 82
15
votes
3 answers

Nginx load balance with upstream SSL

Trying to setup Nginx as load balancer for https servers. The upstream serves over port 443 with SSL certificates configured. How to configure Nginx, so that the SSL certificate configuration is handled only on the upstream servers and not in the…
vetti
  • 299
  • 1
  • 3
  • 13
15
votes
2 answers

How to find the path to a SSL cert file?

I want to use Python Requests to get the contents of internal company web page (say, https://internal.com). I can see this page in the browser, and I can "view the certificate." So now I want to get the web page with Requests, so I do: import…
brent5000
  • 973
  • 2
  • 8
  • 11
15
votes
1 answer

openssl to negotiate SSL encryption for STARTTLS

I'm using openssl to connect to an SMTP server normally (without encryption), send a STARTTLS command, negotiate the SSL encryption, and then interact with the encrypted session. This is the command I'm using (through telnet): openssl s_client…
studying algorithms
  • 525
  • 2
  • 5
  • 13
15
votes
6 answers

How to create a certificate to use with SslStream AuthenticateAsServer without importing

I'm lost in a twisty maze of certificates and private keys. I am writing a server in C#. I want it to accept SSL connections. For test purposes, I want to generate a certificate for "localhost", and use that certificate for the server. Ideally I…
Nikki Locke
  • 2,759
  • 6
  • 29
  • 53
15
votes
4 answers

KeyStore with BouncyCastleProvider: KeyStore integrity check failed

I want to use a self-signed signature for ssl connections. I'm following this post. My problem: After creating the Keystore my integrity-check fails. Keytool-Error: java.io.IOException: KeyStore integrity check failed. I'm still searching but maybe…
K. D.
  • 4,041
  • 9
  • 48
  • 72
15
votes
2 answers

Does EventMachine issue close_notify on close_connection if tls_start was run?

I am trying to program a simple FTPS server based on EventMachine. Control socket works properly. When using data socket for data transfer, it seems that everything works well (TLS handshake completes successfully and data is received), but then I…
Pavel K.
  • 6,697
  • 8
  • 49
  • 80
15
votes
3 answers

Amazon S3 on wamp localhost SSL error

I'm trying to test in PHP Amazon S3 on my localhost but keep getting the same error: Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #69; cURL error: SSL certificate problem, verify that the CA cert is…
CyberJunkie
  • 21,596
  • 59
  • 148
  • 215