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
161
votes
16 answers

How to ignore the certificate check when ssl

I am trying find a way to ignore the certificate check when request a Https resource, so far, I found some helpful article in internet. But I still have some problem. Please review my code. I just don't understand what does the code…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
159
votes
11 answers

How to install trusted CA certificate on Android device?

I have created my own CA certificate and now I want to install it on my Android Froyo device (HTC Desire Z), so that the device trusts my certificate. Android stores CA certificates in its Java keystore in /system/etc/security/cacerts.bks. I copied…
Björn Marschollek
  • 9,899
  • 9
  • 40
  • 66
159
votes
11 answers

How to add a custom CA Root certificate to the CA Store used by pip in Windows?

I just installed Python3 from python.org and am having trouble installing packages with pip. By design, there is a man-in-the-middle packet inspection appliance on the network here that inspects all packets (ssl included) by resigning all ssl…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
157
votes
6 answers

Letsencrypt add domain to existing certificate

I am just simply trying to add the domain test.example.com to the certificate that already exists for example.com. How do I add a domain to my existing certificate and replace the old certificate? I have tried these few commands ./letsencrypt-auto…
Jeff Davenport
  • 2,624
  • 2
  • 13
  • 19
157
votes
8 answers

Error during SSL Handshake with remote server

I have Apache2 (listening on 443) and a web app running on Tomcat7 (listening on 8443) on Ubuntu. I set apache2 as reverse proxy so that I access the web app through port 443 instead of 8443. Besides, I need to have SSL communication not only…
user2791481
  • 1,671
  • 2
  • 12
  • 4
157
votes
4 answers

PHP CURL CURLOPT_SSL_VERIFYPEER ignored

For some reason I am unable to use CURL with HTTPS. Everything was working fine untill I ran upgrade of curl libraries. Now I am experiencing this response when trying to perform CURL requests: Problem with the SSL CA cert (path? access…
Greg
  • 2,413
  • 5
  • 22
  • 23
155
votes
9 answers

bypass invalid SSL certificate in .net core

I am working on a project that needs to connect to an https site. Every time I connect, my code throws exception because the certificate of that site comes from untrusted site. Is there a way to bypass certificate check in .net core http? I saw…
Ramppy Dumppy
  • 2,667
  • 7
  • 27
  • 37
154
votes
7 answers

How to create a self-signed certificate for a domain name for development on Windows 10 and below?

I have subdomain.example.com that I use for development purposes. My web application solution contains a web API etc, that I need to call from external systems, hence I am not using localhost. I now need to test for SSL and need a certificate for my…
Moiz Tankiwala
  • 6,070
  • 7
  • 38
  • 51
154
votes
6 answers

How to Configure SSL for Amazon S3 bucket

I am using an Amazon S3 bucket for uploading and downloading of data using my .NET application. Now my question is: I want to access my S3 bucket using SSL. Is it possible to implement SSL for an Amazon s3 bucket?
Syam kumar
  • 1,721
  • 3
  • 12
  • 5
153
votes
18 answers

npm install error - unable to get local issuer certificate

I am getting an unable to get local issuer certificate error when performing an npm install: typings ERR! message Unable to read typings for "es6-shim". You should check the entry paths in "es6-shim.d.ts" are up to date typings ERR! caused by…
mindparse
  • 6,115
  • 27
  • 90
  • 191
152
votes
16 answers

"The underlying connection was closed: An unexpected error occurred on a send." With SSL Certificate

Issue I get this exception The underlying connection was closed: An unexpected error occurred on a send. in my logs, and it is breaking our OEM integration with our e-mail marketing system at random times. (varying from 1-4 hours) My website is…
Arvind Morwal
  • 1,811
  • 2
  • 14
  • 9
150
votes
13 answers

Get angular-cli to ng serve over HTTPS

The following doesn't seem to do anything. ng serve --ssl true --ssl-key --ssl-cert Creating the Certificate and key by providing them in the default ssl directory still does nothing. It looks like ng server is completely…
grim_i_am
  • 3,664
  • 5
  • 19
  • 19
150
votes
8 answers

Trusting all certificates with okHttp

For testing purposes, I'm trying to add a socket factory to my okHttp client that trusts everything while a proxy is set. This has been done many times over, but my implementation of a trusting socket factory seems to be missing something: class…
seato
  • 2,061
  • 2
  • 15
  • 18
149
votes
22 answers

Why does SSL handshake give 'Could not generate DH keypair' exception?

When I make an SSL connection with some IRC servers (but not others - presumably due to the server's preferred encryption method) I get the following exception: Caused by: java.lang.RuntimeException: Could not generate DH keypair at…
sam
  • 2,105
  • 2
  • 15
  • 18
148
votes
22 answers

How to fix the "java.security.cert.CertificateException: No subject alternative names present" error?

I have a Java web service client, which consumes a web service via HTTPS. import javax.xml.ws.Service; @WebServiceClient(name = "ISomeService", targetNamespace = "http://tempuri.org/", wsdlLocation = "...") public class ISomeService extends…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325