ssl-certificate

how to fix SSL certificate verification failure

夙愿已清 提交于 2020-02-04 09:50:56
问题 I use PHPMailer, along with Apache and PHP, locally. When I test my SSL config and my cacerts I get default_cert_file = C:\Program Files\Common Files\SSL/cert.pem default_cert_file_env = SSL_CERT_FILE default_cert_dir = C:\Program Files\Common Files\SSL/certs default_cert_dir_env = SSL_CERT_DIR default_private_dir = C:\Program Files\Common Files\SSL/private default_default_cert_area = C:\Program Files\Common Files\SSL ini_cafile = ini_capath = and then, I do var_dump(fsockopen("smtp.gmail.com

Expo cannot update npm packages due to SELF_SIGNED_CERT_IN_CHAIN

Deadly 提交于 2020-02-04 05:18:09
问题 Expo for React Native requires the dependency for react-native to be formatted like this: "dependencies": { "expo": "^30.0.1", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz" } When I use npm install to update node packages, I get the following error npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN npm ERR! request to https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz failed, reason: self signed

SSL Certificate to JSON

回眸只為那壹抹淺笑 提交于 2020-02-03 05:42:00
问题 I need to send a SSL Certificate as a string via JSON to my server. On the server I need to reconstruct the JSON string to a valid certificate. My problems are the spaces and line brakes in the certificate. How can I preserve the correct format of the certificate? 回答1: The problem was indeed related to the white spaces and line brakes. Here is what worked for me: Copied the certificate into a one line text field. Not very elegant but it's a quick way to make a one line string out of it. Most

SSL Certificate to JSON

六眼飞鱼酱① 提交于 2020-02-03 05:41:06
问题 I need to send a SSL Certificate as a string via JSON to my server. On the server I need to reconstruct the JSON string to a valid certificate. My problems are the spaces and line brakes in the certificate. How can I preserve the correct format of the certificate? 回答1: The problem was indeed related to the white spaces and line brakes. Here is what worked for me: Copied the certificate into a one line text field. Not very elegant but it's a quick way to make a one line string out of it. Most

Azure https with pfx file

本秂侑毒 提交于 2020-02-02 02:56:07
问题 I am trying to create an https endpoint for my azure service. I was given an p7b file that I converted into a cer file. From the cer I was able to convert with a few lines of c# to a pfx . var cert = new X509Certificate2(@"certpath", " var bytes = cert.Export(X509ContentType.Pfx, "password"); File.WriteAllBytes(@"certpath\cert.pfx", bytes); Now when I upload the cert to azure everything seems ok, I copy the thumbprint and try to upgrade with the new thumbprint as part of the end point and I

SSL certificate pinning with libcurl

风流意气都作罢 提交于 2020-01-31 17:59:07
问题 I'd like to know if this example is enough to provide certificate pinning with libcurl: http://curl.haxx.se/libcurl/c/cacertinmem.html because I have found that curl also allows http://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html Since I'll be using a self-signed certificate and only trust on it I don't know if it's truly necessary to pinn it too. resume: Can the connection be compromised if I only add my certificate (self-signed) to the x509 certificate store like the example? do I

Generate child certificate from CA-issued HTTP cert

限于喜欢 提交于 2020-01-30 08:13:26
问题 So, I have a wildcard certificate which is signed by a respectable CA that all browsers recognize (Equifax). This certificate is valid for *.mydomain.com and works well. Now, what I would like to do is use this cert to sign a certificate for a subdomain like something.mydomain.com -- I don't want to use my main (wildcard) certificate for this sublocation for security reasons. Here is a diagram of the certificate chain I am looking to achieve : Equifax CA ==1==> *.mydomain.com ==2==> something

Unable to load client certificate private key file

空扰寡人 提交于 2020-01-25 05:51:30
问题 I am unable to create Apple Push Notification cert files. When I test .pem files I get an error. openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert pushapp_cert_dev.pem -key pushapp_key_dev.pem will give an error: unable to load client certificate private key file 140735327015760:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY I am following these instructions: https://github.com/raix/push/wiki/iOS-Micro-Walkthrough pushapp_cert

WCF service Unable to establish trust relationship for the SSL/TLS secure channel with authority

怎甘沉沦 提交于 2020-01-25 03:11:07
问题 I have a WCF service that I want to use to connect to an external provider's API. The Client constructor in my service looks like this: public partial class SomePortTypeClient : System.ServiceModel.ClientBase<SomeService.ClientPortType>, SomeService.SomePortType { static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public SomePortTypeClient(string endpointUrl, TimeSpan

Certbot lets-encrypt certificate not found after installation

非 Y 不嫁゛ 提交于 2020-01-24 21:32:45
问题 Certbot installed two lets-encrypt SSL certificates but none working On my AWS EC2 Ubuntu 18 Three files are as follows: /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =sub1.domain.net [OR] RewriteCond %{SERVER_NAME} =sub2.domain.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END