ssl

Custom nginx error page for “The SSL certificate error”

喜你入骨 提交于 2021-01-22 03:41:28
问题 If the customer will choose the expired certificate, the nginx server will show the built-in error page. <html> <head><title>400 The SSL certificate error</title></head> <body bgcolor="white"> <center><h1>400 Bad Request</h1></center> <center>The SSL certificate error</center> <hr><center>nginx</center> </body> </html> How can I catch the error and show the client a different page? 回答1: Please refer to http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors Define an error page for code

Tomcat 6 and TLSv1.2 In Java

半城伤御伤魂 提交于 2021-01-21 14:42:37
问题 I have a Java app deployed in tomcat 6. The app sends messages to another service via socket and it needs to use ONLY TLSv1.2 protocol. In my tomcat6.conf file I put this configuration: JAVA_HOME=/usr/lib/jvm/jre1.7.0_75 JAVA_OPTS="${JAVA_OPTS} -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Dhttps.protocols=TLSv1.2" But stll use the older tls version. It there any configuration to apply in java or tomcat to force use TLSv1.2? Edit 1: The answer provided by

Nginx - Upstream SSL - peer closed connection in SSL handshake

醉酒当歌 提交于 2021-01-21 03:57:02
问题 I am getting this error: Error frontend: 502 Bad gateway 99.110.244:443 2017/09/28 13:03:51 [error] 34080#34080: *1062 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream, client: 10.210.0.81, server: webshop.domain.be, request: "GET / HTTP/1.1", upstream: "https://10.1.10.61:443/", host: "webshop.domain.be" Config: # Zone voor connection logging limit_conn_zone $binary_remote_addr zone=izSSL_webshop-api_CZ:10m; # Zone voor rate logging #

How to install OpenSSL in windows 10?

狂风中的少年 提交于 2021-01-20 14:01:32
问题 I have a question about how and what is the version of OpenSSl that I must install in Windows to later create certificates. Install a one version (openssl-1.0.2d-fips-2.0.10) found in SourceForge but it does not generate the files correctly. There is also the official website https://www.openssl.org, but I do not know how to install it and how, so that when it comes to generating the keys and .pem file, it works. Generate some environment variables that point to the folder where I unzipped

C# tls1.3 Exception: Cannot determine the frame size or a corrupted frame was received

若如初见. 提交于 2021-01-19 06:30:19
问题 I want to test tls1.3, so i created a console app in VS 2019(Version 16.7.7) and the target framework is .NET Core 3.1. My Program.cs using System; using System.Net.Security; using System.Net.Sockets; using System.Security.Authentication; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; namespace TestSsl { class Program { static void Main(string[] args) { SslProtocols protocol = SslProtocols.Tls13;

C# tls1.3 Exception: Cannot determine the frame size or a corrupted frame was received

做~自己de王妃 提交于 2021-01-19 06:29:34
问题 I want to test tls1.3, so i created a console app in VS 2019(Version 16.7.7) and the target framework is .NET Core 3.1. My Program.cs using System; using System.Net.Security; using System.Net.Sockets; using System.Security.Authentication; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; namespace TestSsl { class Program { static void Main(string[] args) { SslProtocols protocol = SslProtocols.Tls13;

Why Schannel fails to receive handshake from the server?

人盡茶涼 提交于 2021-01-18 05:38:25
问题 When I'm trying to pull from our git server I get this error: fatal: unable to access 'xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to xxx When this happened before I was able to solve it by simply restoring the system but this time my system restore points got deleted for some reason, and I can't do that either. So this happens because something in my system settings related to SSL changes and I don't know why. I have tried installing git to use windows cert. store instead of

Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

可紊 提交于 2021-01-15 10:07:37
问题 I am trying to open an FTP connection over SSL in my code. I'm able to connect and list a directory using FileZilla of WinSCP. But when listing the directory through .NET code using FtpWebClient , I get the error (425) Can't open data connection Since I'm able to connect using FileZilla from the same computer, I'm not sure how to go about troubleshooting this. Here's my code public void FtpStuff() { string url = "ftp://my.server.com"; FtpWebRequest request = (FtpWebRequest)WebRequest.Create

Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

孤者浪人 提交于 2021-01-15 10:05:11
问题 I am trying to open an FTP connection over SSL in my code. I'm able to connect and list a directory using FileZilla of WinSCP. But when listing the directory through .NET code using FtpWebClient , I get the error (425) Can't open data connection Since I'm able to connect using FileZilla from the same computer, I'm not sure how to go about troubleshooting this. Here's my code public void FtpStuff() { string url = "ftp://my.server.com"; FtpWebRequest request = (FtpWebRequest)WebRequest.Create

Telegram webhook: Why i get ssl3_get_server_certificate:certificate verify failed Error when i call GetWebhookInfo API command?

别等时光非礼了梦想. 提交于 2021-01-08 15:36:15
问题 Server: Win Server 2012 Web server: IIS 8.5 Project: Asp.Net MVC I bought a wildcard SSL certification for my domain and its subdomains and installed it on my server and bound to the website (in IIS). It show green secure HTTPS in browser. I used Telegram SetWebhook with my webhook URL (Something like this: https://webhook.example.com/api/WebhookAction/ ) But when i run Telegram GetWebhookInfo it return certificate verify failed error: { "ok":true, "result":{ "url":"https://webhook.example