certificate

deleting certs from the “other people” certificate store

与世无争的帅哥 提交于 2021-02-07 10:28:59
问题 I have been doing some research to see if there is a way to script this functionality and I cant seem to find where these certs are actually stored. I see the other articles on "deleting certificates from store", but I think these are causing me more confusion. If I run a search like get-childitem -path cert:\CurrentUser , I don't see the Other People location. But, I am able to see the location in certmgr.msc . I have also checked the reg locations outlined here: https://technet.microsoft

deleting certs from the “other people” certificate store

孤街浪徒 提交于 2021-02-07 10:28:12
问题 I have been doing some research to see if there is a way to script this functionality and I cant seem to find where these certs are actually stored. I see the other articles on "deleting certificates from store", but I think these are causing me more confusion. If I run a search like get-childitem -path cert:\CurrentUser , I don't see the Other People location. But, I am able to see the location in certmgr.msc . I have also checked the reg locations outlined here: https://technet.microsoft

HTTPS Client certificate error ERR_SSL_SERVER_CERT_BAD_FORMAT

十年热恋 提交于 2021-02-07 08:35:30
问题 I'm trying to use a client HTTPS certificate system in node. Here what I did to generate ssl files : # CA Key and Certificate openssl genrsa -aes256 -out ca.key 4096 openssl req -new -x509 -days 365 -key ca.key -out ca.crt # Create the Server Key CSR and Certificate openssl genrsa -aes256 -out server.key 4096 openssl req -new -key server.key -out server.csr # Self Signing openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt # Create the Client Key

Strong Name sn.exe: Failed to install key pair — Object already exists

橙三吉。 提交于 2021-02-05 20:49:20
问题 I have 2 different versions of the same project on my machine. One from the code trunk, and the other from a code branch. These projects use a .pfx key to enable strong naming. When I first tried to compile the trunk version of the project I get the following error: Cannot import the following key file: sgKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key

Strong Name sn.exe: Failed to install key pair — Object already exists

有些话、适合烂在心里 提交于 2021-02-05 20:48:21
问题 I have 2 different versions of the same project on my machine. One from the code trunk, and the other from a code branch. These projects use a .pfx key to enable strong naming. When I first tried to compile the trunk version of the project I get the following error: Cannot import the following key file: sgKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key

How to get data from a website that uses SSL using cURL and PHP?

微笑、不失礼 提交于 2021-02-05 11:34:26
问题 I am trying to get some data from a website where you need to have a SSL certificate to be able to connect to it. I have found the following code : // create curl resource $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, $host); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, $host); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); The cURL query works well, but the data

MQTTnet client can't connect server certificate

三世轮回 提交于 2021-02-05 09:27:11
问题 I'm using MQTTnet library to connect to my MQTT server that needs a server certificate. The client one is not needed. I already installed the certificate inside my PC as i found in other post and created the .pfx file to create the certificate but the program doesn't give me any error..it simply doesn't connect to the topic. This is my example code //Create a new MQTT client var factory = new MqttFactory(); var mqttClient = factory.CreateMqttClient(); var caCert = new X509Certificate(@"C:

Store Client Certificate and key (.pem) in Android securely

被刻印的时光 ゝ 提交于 2021-02-05 09:26:07
问题 I am developing an Android App for internal use to send test requests to our server. The Authentification is via Basic + Client Certificate. What I am doing right now is storing cert and key file in assets/certs, getting the passphrase for the key and Basic Auth via input and then saved in SharedPreferences. This is probably not safe. I am mostly concerned about the two .pem-files. I read a lot about saving them in the Android Keystore, but not really sure about that. Is it possible to

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

Questions about CSR and SSL Certificates

喜你入骨 提交于 2021-01-29 13:34:08
问题 I'm in the process of connecting to an external server and am making a CSR to receive some certificates from them, and I have some questions regarding this. Some tutorials state that you should save the private key as this will be used during installation of the certificate. However when using the Windows certificate manager (certmgr.msc) I think it generates the private key under the hood, and the resulting CSR-file does not contain any private key. So in that case I won't have access to any