ssl

SSL on Apache HTTP Server

半城伤御伤魂 提交于 2021-02-05 11:29:53
问题 I have 2 crt files for Apache server: 1_root_bundle.crt 2_my_domain_name.com.crt And other bundle: 1_Intermediate.crt 2_my_domain_name.com.crt root.crt I have modified /etc/apache2/sites-available/default-ssl.conf And tried various combinations of above mentioned files but after Apache2 service restart SSL does not work, browser shows "Connection is not secure": SSLEngine on SSLCertificateFile /etc/apache2/ssl/1_Intermediate.crt SSLCertificateKeyFile /etc/apache2/ssl/2_my_domain_name.com.crt

SSLHandshakeException in API 17 (JELLY_BEAN) when using custom CA

ε祈祈猫儿з 提交于 2021-02-05 10:54:27
问题 I need connect to my server API with TLS_v1 , server certificate signed by CA that not include in older version of android so i use this Google's document to implement custom TrustManager . Everything work on API 18 and above, but throw SSLHandshakeException in JELLY_BEAN(API 17): java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. I have another server URL and certificate (in this case self-signed) that works even in JELLY_BEAN with same TrustManager

Parsing SSL traffic in .pcap file using Python

前提是你 提交于 2021-02-05 09:41:37
问题 I have a bunch of tcp dumps, which contain SSL traffic. I'm also provided with the RSA private key to decrypt it. There are a few reasons, why opening them in Wireshark is not really an option, so my goal is to do some statistics on them with Python. So far I've been using Scapy and dpkt for these type of statistics. How do I analyse a package capture containing SSL-traffic with Python? 回答1: I am working on SSL/TLS layers for scapy. Besides providing interfaces for TLSMessages (Records

Parsing SSL traffic in .pcap file using Python

白昼怎懂夜的黑 提交于 2021-02-05 09:41:18
问题 I have a bunch of tcp dumps, which contain SSL traffic. I'm also provided with the RSA private key to decrypt it. There are a few reasons, why opening them in Wireshark is not really an option, so my goal is to do some statistics on them with Python. So far I've been using Scapy and dpkt for these type of statistics. How do I analyse a package capture containing SSL-traffic with Python? 回答1: I am working on SSL/TLS layers for scapy. Besides providing interfaces for TLSMessages (Records

Bad Handshake when using requests

筅森魡賤 提交于 2021-02-05 09:29:17
问题 I was trying to download a PDF file from Internet and Python2.7.15cr1 and requests 2.19.1 but I am facing this error: > Traceback (most recent call last): > File "download.py", line 5, in <module> > r = requests.get(url,verify=False) > File "/home/user/.local/lib/python2.7/site-packages/requests/api.py", > line 72, in get > return request('get', url, params=params, **kwargs) > File "/home/user/.local/lib/python2.7/site-packages/requests/api.py", > line 58, in request > return session.request

how to fix error “net::ERR_SSL_SERVER_CERT_BAD_FORMAT” When useing vuejs and nodejs with https and express

◇◆丶佛笑我妖孽 提交于 2021-02-05 09:25:10
问题 I have some code to send https request in vue.js and when use actions methods in vuex for send https request I get this error in console GET https://localhost/api/getpeople net::ERR_SSL_SERVER_CERT_BAD_FORMAT my code is : vue.js table.js import Axios from "axios"; let state = { people: [] }; let getters = { getPeople(state) { return state.people; } } let mutations = { setPeople(state, people) { state.people = people } } let actions = { sendHttpReq({ commit }) { Axios.get('https://localhost

How to disable ssl certificate validation upon OpenId connect in .Net Core 3.1?

只谈情不闲聊 提交于 2021-02-05 09:01:52
问题 I'm trying to connect in a development environment to a open id authority with it's ip address. Obviously in this scenario the ssl validation will fail. I'd like to bypass it, without any luck so far. I've found the following answers regarding this topic: Setting the RequireHttpsMetadata to false in the OpenIdConnectOptions class. Using the code below: ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; When my app tries to access the

unable to get local issuer certificate even with bundle installed

被刻印的时光 ゝ 提交于 2021-02-05 08:23:06
问题 I know something similar to this has already been asked around here but I think my problem is different. I'm trying to make a curl request to a propper SSL website (its not self-signed). I can set the options easily and even imported the CA certificate bundle to the right place. All fine and good I would hope but I'm still getting : SSL certificate problem: unable to get local issuer certificate I've looked around here and on google and can't seem to solve the issue. Here's my curl setup: $ch

Keystore password encrypting in java

邮差的信 提交于 2021-02-05 08:00:52
问题 I need to set the following variables before invoking remote queue. System.setProperty("javax.net.ssl.trustStore","C:\\certs\\trustStore.jks"); System.setProperty("javax.net.ssl.keyStore","C:\\keystore\\keyStore.jks"); System.setProperty("javax.net.ssl.keyStorePassword","Demo1234"); System.setProperty("javax.net.ssl.trustStorePassword","Demo1234"); The passwords are exposed here. What is the best way to encrypt the passwords? 回答1: At some point, your private key/key store password must be

cURL Error (35): error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 unrecognized name

送分小仙女□ 提交于 2021-02-05 05:00:25
问题 I have been using the following code block to collect data from a HTTPS website using cURL. $q = 'https://www.example.org/'; // for example $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $q); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $json = curl_exec($ch); cURL shows the following error error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1