ssl

Unsupported or unrecognized ssl-message exception at startHandshake after issuing STARTTLS command in a java program

本秂侑毒 提交于 2021-02-04 21:54:30
问题 I have written a simple e-mail client in java without using the JavaMail API, as by what I read from the documentation it seems necessary to split the messages up into head and body and in the single MIME-parts for sending which would make my application a lot more complicated. Everything worked fine for a SSL port (465) but now I'm trying to use the client with a different provider that only supports STARTTLS on port 587. The following code is of a class I wrote to test the access to the

Python requests with proxy results in SSLError WRONG_VERSION_NUMBER

折月煮酒 提交于 2021-02-04 19:43:06
问题 I can't use the different proxy in Python. My code: import requests proxies = { "https":'https://154.16.202.22:3128', "http":'http://154.16.202.22:3128' } r=requests.get('https://httpbin.org/ip', proxies=proxies) print(r.json()) The error I'm getting is: . . . raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /ip (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION

Curl cannot verify wildcard SSL certificate issued by Verisign

心不动则不痛 提交于 2021-02-04 19:22:31
问题 I have a script that needs to use cURL to securely connect to a web site, foo.bar.com that is covered by a wildcard SSL certificate for *.bar.com. The wildcard certificate is issued by Verisign, and all browsers trust it without any problem. However, I cannot get PHP / cURL to connect (at least not without disabling certificate verification). Just for the sake of isolating the problem, I tried to connect using just command-line cURL (version 7.21.1). I downloaded an updated CA bundle from

Curl cannot verify wildcard SSL certificate issued by Verisign

南楼画角 提交于 2021-02-04 19:22:00
问题 I have a script that needs to use cURL to securely connect to a web site, foo.bar.com that is covered by a wildcard SSL certificate for *.bar.com. The wildcard certificate is issued by Verisign, and all browsers trust it without any problem. However, I cannot get PHP / cURL to connect (at least not without disabling certificate verification). Just for the sake of isolating the problem, I tried to connect using just command-line cURL (version 7.21.1). I downloaded an updated CA bundle from

How to disable ssl check in react native XMLHttpRequest API or in Fetch Api?

人走茶凉 提交于 2021-02-04 18:53:11
问题 On local testing server url have ssl certificate error so i have to disable ssl check. I have read many solutions on stackoverflow none of them helped. Problem is i can't make any change on server. So i want to know how to disable ssl check or is there any other api like fetch api or Retrofit for react native.? My fetch api code as follows fetch('https://example.com/logincheck', { method: 'post', headers: { 'Accept': 'application/json, text/plain,', 'Content-Type': 'application/json' }, body:

Is it possible to set subjectAltName using pyOpenSSL?

半城伤御伤魂 提交于 2021-02-04 18:50:30
问题 I need to generate SSL certificates from Python using pyOpenSSL. Does anyone know if it's possible to set subjectAltName? From the documentation (https://pythonhosted.org/pyOpenSSL/api/crypto.html#x509-objects) it doesn't seem so. In fact, only a set_subject method is provided. Is there any way to add that to the certificate? 回答1: san_list = ["DNS:*.google.com", "DNS:google.ym"] cert.add_extensions([ OpenSSL.crypto.X509Extension( "subjectAltName", False, ", ".join(san_list) ) ]) 回答2: I

Apache 2.4.37 with openssl 1.1.1: cannot perform post-handshake authentication

爷,独闯天下 提交于 2021-02-04 17:44:07
问题 I updated apache to last version 2.4.37 and openssl to 1.1.1 and now, when client authenticates, I get this error only with Firefox 63, but not in Chrome: [ssl:error] AH: verify client post handshake, referer: https://******/login [ssl:error] AH10158: cannot perform post-handshake authentication, referer: https://******/login [ssl:error]SSL Library Error: error:14268117:SSL routines:SSL_verify_client_post_handshake:extension not received I used wireshark to try to find the problem, and I

Client SSL with Self Signed CA not working

跟風遠走 提交于 2021-02-04 10:58:38
问题 I have been struggling with an SSL problem for more than 1 month. We have used openssl to generate our own CA, server and client certificates. We have also enable "SSLrequire" on the Apache web server (in htaccess this may be wrong), which means that anyone trying to connect through https on the server needs to present a valid certificate The step are as follows; generate the CA key generate the CA CSR sign the CA CSR with the CA Key so we have our own CA which is used to sign our server and

Client SSL with Self Signed CA not working

久未见 提交于 2021-02-04 10:58:25
问题 I have been struggling with an SSL problem for more than 1 month. We have used openssl to generate our own CA, server and client certificates. We have also enable "SSLrequire" on the Apache web server (in htaccess this may be wrong), which means that anyone trying to connect through https on the server needs to present a valid certificate The step are as follows; generate the CA key generate the CA CSR sign the CA CSR with the CA Key so we have our own CA which is used to sign our server and

how to statically compile Qt using MinGW compiler and SSL support

自作多情 提交于 2021-02-04 05:59:05
问题 How to statically compile Qt with OpenSSL support on Windows (with MinGW compiler) The desired 'outcome' of this Qt build is to build and ship a portable Qt application with built-in SSL support. So this is an age old problem with a multitude of questions on this topic, yet very few solutions exist that solves the problem. Some of these questions (and problems): QT https SSL support for static QT static program build - getting 'Protocol “https” is unknown' about compiling openssl inside qt