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

Why does Python requests ignore the verify parameter?

The problem I have been trying to use Python's requests package to download the following URL: https://service.isracard.co.il/I_logon.jsp In Chrome, the certificate seems valid: However, in Python, the request fails with…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
15
votes
8 answers

curl error 35 : unknown SSL protocol error in connection

$ curl -I https://9.185.173.135 curl: (35) Unknown SSL protocol error in connection to 9.185.173.135:443 This is an secured page that I need to access. But I don't know how to obtain its certificate file. I tried to use Firefox, but it says…
Michael Mao
  • 9,878
  • 23
  • 75
  • 91
15
votes
2 answers

com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:

I'm using Volley library in Android in my application and when trying to make POST requests to our server I get the following error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL…
Daniel Sechel
  • 389
  • 1
  • 2
  • 11
15
votes
2 answers

why is keycloak removing the SSL in the redirect uri?

We have a simple requirement where: PS: https:/ === https:// When user hits https:/company_landing.company.com , they should be redirected to keycloak login page (at https:/ourcompany-keycloak.company.com). User enters his/her keycloak login…
mmraj
  • 1,875
  • 4
  • 16
  • 19
15
votes
1 answer

openSSL sign https_client certificate with CA

I need to: create a CA certificate create a https_client-certificate sign the https_client-certificate by the CA by using the command-line on Linux - openSUSE. I create the CA certificate: # openssl genrsa -out rootCA.key 2048 Generating RSA…
Yaerox
  • 608
  • 2
  • 11
  • 27
15
votes
3 answers

cordova "release" behaves differently to "debug" regarding SSL

I have very difficult and totally ungoogleable problem with cordova. A program, working perfectly being compiled in --debug mode, ceases working after compilation in --release mode. I made sure the source is identical, and the effect is…
Eugene Panferov
  • 439
  • 3
  • 8
15
votes
3 answers

How do I accept a self-signed SSL certificate using iOS 7's NSURLSession

I have the following code (swift implementation): func connection(connection: NSURLConnection, canAuthenticateAgainstProtectionSpace protectionSpace: NSURLProtectionSpace) -> Bool { return protectionSpace.authenticationMethod ==…
Carlos Cardoso
  • 315
  • 1
  • 2
  • 9
15
votes
5 answers

How to deal with self-signed TLS certificates in Laravel's SMTP driver?

I'm trying to send an email with this configuration: return [ 'driver' => 'smtp', 'host' => 'mail.mydomain.com', 'port' => 26, 'from' => ['address' => 'mailer@mydomain.com', 'name' => 'Mailer'], …
Alan
  • 2,559
  • 4
  • 32
  • 53
15
votes
4 answers

How to validate / verify an X509 Certificate chain of trust in Python?

I am working on implementing a web application that utilizes an API. During a response, the API server sends over a link to an X509 certificate (in PEM format, composed of a signing certificate and one or more intermediate certificates to a root CA…
speznot
  • 151
  • 1
  • 1
  • 6
15
votes
6 answers

tomcat 7 + ssl not working - ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Ubuntu 14, tomcat 7, java 7 our.crt, our.key and gd_bundle-g2-g1.crt supplied by godaddy. The bundle has 3 certs in it (as seen by vi'ing the file). Note, our key and crt were used on node.js without issue. we created a keystore from the existing…
John Little
  • 10,707
  • 19
  • 86
  • 158
15
votes
1 answer

I/O error during system call, Connection reset by peer

We have been successfully fetching data from a web server with HTTP url for almost 2 years without any hiccups. In recent past we have migrated to HTTPS for some security reason.And that's when the problem blossomed. With WiFi everything works…
MohanRaj
  • 662
  • 1
  • 6
  • 21
15
votes
1 answer

Curl command for https ( SSL )

I am trying to run the following CURL command but I am getting a SSL Certificate error: curl https://example.com:8443/cli/agentCLI -u username:password Error: curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: …
Kalaiyarasan
  • 267
  • 3
  • 6
  • 13
15
votes
1 answer

Should we use google's security provider with OkHttp?

We're using okhttp in our Android project to talk to our API; all communications are encrypted with SSL/TLS, and our servers can speak SPDY. We're also linking in Google Play Services for the fused location provider and some other…
mlc
  • 1,668
  • 2
  • 16
  • 30
15
votes
3 answers

Can't get https working on Elastic Load Balancer (AWS)

I have a load balancer in front on an ec2-Classic instance. I have checked that the load balancer is working properly by directly linking to the DNS Name value that is listed in the Description tab for my load balancer. This gives me the main page…
cafman
  • 307
  • 2
  • 5
  • 15
15
votes
1 answer

"Ignoring unsupported cipher suite" message when "-Djavax.net.debug=ssl:handshake" is enabled on server side

I have implemented SSLServerSocket and when I start .jar file with option -Djavax.net.debug=ssl:handshake to debug secure handshakes, I get also these messages (before establishing some secure connection): ... Ignoring unavailable cipher suite:…
Ernestas Gruodis
  • 8,567
  • 14
  • 55
  • 117