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

How to fix "The SSL connection could not be established, see inner exception." when trying to download osu! avatar

I want to download osu! avatars to use them, but keep getting this error: The SSL connection could not be established. Inner exception is: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.…
PalaBeaveR
  • 183
  • 1
  • 1
  • 7
15
votes
1 answer

Handshake Failure: SSL Alert number 40

I'm trying to crawl a page without success: >> scrapy shell "XXXXXX" ... 2018-12-28 17:23:32 [scrapy.downloadermiddlewares.retry] DEBUG: Retrying (failed 1 times): [
Joaquin
  • 2,013
  • 3
  • 14
  • 26
15
votes
4 answers

NGINX + Let's encrypt: Could not automatically find a matching server block

I'm publishing a website made with Python Pyramid on an Ubuntu 18.04 server. The website is running properly on HTTP and now I'm trying to make it run on HTTPS by following this article but when trying to install I get this message: IMPORTANT…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
15
votes
2 answers

Charles Proxy for Mobile apps that use SSL Pinning

Charles Proxy website comments that: Note that some apps implement SSL certificate pinning which means they specifically validate the root certificate. Because the app is itself verifying the root certificate it will not accept Charles's certificate…
Stanford Wong
  • 339
  • 1
  • 3
  • 13
15
votes
2 answers

Node.js 10 HTTPS server is rejecting connections

I have simple Node.js HTTPS server const https = require('https'); const fs = require('fs'); const config = { key: fs.readFileSync('cert/server-key.pem'), cert: fs.readFileSync('cert/server-crt.pem'), ca:…
m1ch4ls
  • 3,317
  • 18
  • 31
15
votes
3 answers

How to read TLS certificates websockets using PHP?

I am trying to connect to a secure websocket created by PHP, but for some reason it doesn't work. The certificate files are readable for PHP. This is my code so far (PHP side; stripped down code for simplicity): $context =…
alpham8
  • 1,314
  • 2
  • 14
  • 32
15
votes
1 answer

How to solve a problem with devicemotion script?

I'm not sure if this is the right place to ask, but I have a problem with my devicemotion script. I have some code that runs when the page is loaded to check if there is a gyroscope available or not. I do this in the following way: function…
FutureCake
  • 2,614
  • 3
  • 27
  • 70
15
votes
4 answers

Client certificate not getting added to the request (Certificate Verify)

I'm trying to do a simple GET request to an external production server with a client certificate. They have added our certificate to their server, and I have successfully made requests through Postman (both the Chrome app and the Windows native app)…
Aske B.
  • 6,419
  • 8
  • 35
  • 62
15
votes
5 answers

Why cannot I redirect my React app on Heroku from http to https?

I have an app on Heroku that was created using create-react-app. Just today, I got an SSL cert using Heroku's automated(-ish) SSL cert process ExpeditedSSL, and the documentation then suggests rerouting all http requests to https. I have a server.js…
smkarber
  • 577
  • 5
  • 18
15
votes
3 answers

botocore.exceptions.ClientError An error occurred (SignatureDoesNotMatch) when calling the GetObject operation

While running the following code: import boto3 BUCKET = 'bwd-plfb' s3 = boto3.client('s3',use_ssl = False) resp = s3.list_objects_v2(Bucket = BUCKET ) s3.download_file(BUCKET,'20171018/OK/OK_All.zip','test.zip') I'm getting the following error:…
bodhisattva0743
  • 151
  • 1
  • 1
  • 4
15
votes
4 answers

SSL handshake error on self-signed cert in Flutter

I'm trying to connect server with self-signed cert, but I take error: E/flutter ( 3781): HandshakeException: Handshake error in client (OS Error: E/flutter ( 3781): CERTIFICATE_VERIFY_FAILED: Hostname mismatch(ssl_cert.c:345)) Code, where I set…
Armen Kh.
  • 315
  • 1
  • 2
  • 8
15
votes
2 answers

AWS API Gateway MTLS client auth

Everytime I searched for Mutual Auth over SSL for AWS API Gateway I can only find MTLS between AWS API Gateway and Backend Services. But I'm looking to secure my AWS API Gateway endpoints itself with MTLS (client auth). For instance, I have a…
15
votes
2 answers

How to dynamically change CSS elements to be HTTPS or HTTP

I have CSS with background-image's elements that refer to another site. Problem is, that in IE you can't have resources if you are in HTTP while they are in HTTPS and vise versa. I am using ASP.NET and I want to find a way of letting the CSS know…
Himberjack
  • 5,682
  • 18
  • 71
  • 115
15
votes
3 answers

SSL certificate migration from one server to another

What's necessary to migrate valid SSL certificate from one server and service provider to another?
Paul
  • 1,928
  • 8
  • 24
  • 32
15
votes
2 answers

How to pass trustStore property in gradle build script

I am trying to generate classes for a SOAP webservice through a gradle script. I am using a plugin gradle-jaxws-plugin which is available in maven central. My script looks like below: buildscript { repositories { mavenCentral() …
yogsma
  • 10,142
  • 31
  • 97
  • 154