pfx

Certificate problem - Error Importing Key “object already exists” after Windows 7 upgrade

爱⌒轻易说出口 提交于 2019-12-04 01:36:54
I have about 60 .pfx files for all major assemblies for a project. They are unique files, but I use the same password for all. After an upgrade from Windows Vista to Windows 7 I get an Import Key File dialog requesting the password for them when I click Build in Visual Studio 2008. This would have been fine, but after inserting the password I get an error dialog: Error Importing Key - Object Already Exists. Any ideas? Solved it! After the upgrade from Vista to Windows 7 the permissions of the folder containing certificates C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys had changed. After

openssl fails to produce a pfx with a valid alias

╄→гoц情女王★ 提交于 2019-12-03 17:15:31
问题 I am trying to generate a pfx file to use as a signing mechanism for some JAR files as per these instructions. To create the pfx file I am using the following command openssl pkcs12 -export -in my-cert.crt -inkey my-priv-key.key -certfile my-ca-bundle -out my-pfx.pfx This command successfully generates me a pfx file, however, when I try to find the alias using the following command keytool -list -storetype pkcs12 -keystore my-pfx.pfx -v | grep Alias I get the following response Alias name: 2

How to create a valid, self-signed X509Certificate2 programmatically, not loading from file in .NET Core

荒凉一梦 提交于 2019-12-03 16:25:22
问题 What I currently do is that I use OpenSSL to generate PFX file. This is causing an unwanted dependency, especially for Windows users. So I found some examples on how to create your own certificate using BouncyCastle, but this library is not .NET Core compatible (or I failed to find the compatible package). So, is it possible to create your own self signed X509 certificate using just .NET core to avoid dependency on OpenSSL (or any other certificate generating external tool)? EDIT: It was

Problem with TemporaryKey.pfx I don't have the password

有些话、适合烂在心里 提交于 2019-12-03 10:11:36
A client of mine has a problem. He had a Microsoft CRM developper and he left. Now the project remains uncomplete. I've downloaded the source code of the custom applications and I'm not trying to continue the development. I've tried the ClickOne deployment and it pops me with a password input box related to the myapp_TemporaryKey.pfx. I've tried to install on a computer on the network and launch in debugging mode, and I get the same problem, it says : "Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import

Certificate issue: KEY or PFX from P7B and CRT

北慕城南 提交于 2019-12-03 10:03:11
I'm new to the certificates, and this is a first time I bought it. I generated CSR file (in IIS) and bought certificate using GoDaddy web site. They sent me two files: P7B and CRT. Since I will use the certificate for Azure Web role, I need PFX. How can I create it using only CSR, P7B, and CRT? Finally I managed to do that. In IIS I selected Complete Certificate Request, installed the CRT certificate, and then used Export option to save it as PFX. Since I will use the certificate for Azure Web role, I need PFX Although my target server is Nancy, I'm posting the answer because it's relevant to

Import PFX file into Existing JKS file (NOT converting from .pfx to .jks)

爷,独闯天下 提交于 2019-12-03 08:51:58
问题 I have Java web service and have implemented X.509 using jks files created by Java Keytool. keytool -genkey -keyalg RSA -sigalg SHA1withRSA -validity 730 -alias myservicekey -keypass skpass -storepass sspass -keystore serviceKeystore.jks -dname "cn=localhost" keytool -genkey -keyalg RSA -sigalg SHA1withRSA -validity 730 -alias myclientkey -keypass ckpass -storepass cspass -keystore clientKeystore.jks -dname "cn=clientuser" To establish trust between client and server I import the server certs

Install a pfx certificate in a users store in Windows using WiX

一世执手 提交于 2019-12-03 07:39:59
问题 Please, can someone provide me with a WiX snippet or solution for the mentioned scenario. I need to include the pfx file in the WiX msi and the user will download my msi to his machine via the internet explorer and Click install and I need also the certificate to be installed on his machine. 回答1: You need the Certificate element. It is part of the IIS extension for wix, but can be used for non-IIS related installations also. You need to declare a prefix for the iis namespace, for example like

Store X509 Certificate in database

风流意气都作罢 提交于 2019-12-03 06:24:17
In order to access to the web service I need a certificate. I generated my certs: openssl genrsa 1024 > private.key openssl req -new -x509 -nodes -sha1 -days 1100 -key private.key > public.cer then merged this two into a pfx certificate by openssl pkcs12 -in public.cer -inkey private.key -export -out client.pfx then loaded my pfx file as X509Certificate2 X509Certificate2 clientCert = new X509Certificate2("cert.pfx", "password"); Now, I would like to create a table into the data base that contains the following fields: PrivateKey NVARCHAR PublicCer NVARCHAR Password NVARCHAR Then copy the

what is the correct way to cancel multiple tasks in c#

馋奶兔 提交于 2019-12-03 05:36:13
I have a button thats spawns 4 tasks. The same button changes to a cancel button and clicking this should cancel all 4 tasks. Should I pass the same cancel token to all 4 tasks and have them poll on the same token for IsCancelRequested ? I am confused after reading the msdn doc on createlinkedtokensource . How is this normally done ? thank you Update: Task.WaitAll() waits tills all tasks complete execution . Similarly how to know when all tasks have been canceled once the shared cancel token source is set to cancel. Yeah, what you said about using a single CancellationToken is correct. You can

How to create a valid, self-signed X509Certificate2 programmatically, not loading from file in .NET Core

浪尽此生 提交于 2019-12-03 04:57:32
What I currently do is that I use OpenSSL to generate PFX file. This is causing an unwanted dependency, especially for Windows users. So I found some examples on how to create your own certificate using BouncyCastle, but this library is not .NET Core compatible (or I failed to find the compatible package). So, is it possible to create your own self signed X509 certificate using just .NET core to avoid dependency on OpenSSL (or any other certificate generating external tool)? EDIT: It was suggested by someone (editor?) that this SO question How to create a self-signed certificate using C#?