pfx

How to import certificate from Azure?

坚强是说给别人听的谎言 提交于 2019-12-12 02:28:25
问题 We bought a certificate via Azure and would like to use it on same VM . We just need .pfx file. We tried almost everything and we are getting next error: "You do not have permission to get the service prinicipal information needed to assign a Key Vault to your certificate. Please login with an account which is either the owner of the subscription or an admin of the Active Directory to configure Key Vault settings." But we have permissions... 回答1: @Sasha, there are not a lot of details to go

programmatically creating a .pfx file

落花浮王杯 提交于 2019-12-11 23:51:51
问题 Is there a way to programmatically creating .pfx file certificate? I would like to use it to sign PDF. I would get the data of client from database then construct the file so when they click sign pdf, it would go out and get the pfx file that has been constructed and stored in database and then sign pdf with that file. so my goal is how to create the file? I am using C# 4.0. 回答1: You can use the ChilKat library. You will need the PEM file though, here is the link: http://www.example-code.com

Creating PEM, pfx,… from private modulus,

早过忘川 提交于 2019-12-11 13:02:05
问题 i received the following from some legacy system when i asked for private key: MODULUS, PUBLIC EXP, PRIVATE EXP, PRIME_P, PRIME_Q, PARAM_P, PARAM_Q, Q_MOD_INV All of this data is in hex, how can i convert this to a openssl PEM file or PFX ? Thank you and best regards! 回答1: Generate RSA key with openssl: openssl genrsa -out rsa.pem 2048 Convert RSA key from PEM format to DER format: openssl rsa -inform PEM -in rsa.pem -outform DER -out rsa.der Open file rsa.der in ASN.1 Editor: ASN.1 structure

SignedData giving Invalid algorithm specified.exception

自作多情 提交于 2019-12-11 08:04:23
问题 I tried to sign and valid my signed data using myCert.pfx file private and public key. But while signing the data I am getting " Invalid algorithm specified." exception .Net framework we are using is 4.5 and the code is as below public static void CallMainMethod() { string str = "Sign and verify the data"; X509Certificate2 certificate = LoadPrivateKey(); byte[] hashBytes = GetDataHash(str); byte[] signature = GetDigitalSignature(hashBytes); } private static X509Certificate2 LoadPrivateKey() {

Converting a PFX certificate to a JKS gives “Duplicate extensions not allowed” exception

…衆ロ難τιáo~ 提交于 2019-12-11 05:22:04
问题 When trying to convert the PFX certificate with keytool: keytool -importkeystore -srckeystore SomeCert.pfx -srcstoretype pkcs12 -srcstorepass SomePass -destkeystore SomeCert.jks -deststoretype jks -deststorepass SomePass I get the following exception keytool error: java.security.cert.CertificateParsingException: java.io.IOException: Duplicate extensions not allowed Also, when using jetty's PKCS12Import tool, as described here, I get the same exception. The main cause is the following: Caused

ilmerge with a PFX file

落爺英雄遲暮 提交于 2019-12-11 04:39:46
问题 It would appear that VS2012 uses PFX files for signing instead of SNK files. I get the impression this is related to delayed signing; but I don't care. When I build my application, I can use "sn -tp <my assembly>" and see it is signed. When I ilmerge the debug folder and use the /keyfile directive (the way I was successfully doing with SNK files), the DLLs merge into one unsigned DLL. I have read articles suggesting clever workarounds, such as extracting the public key from the original DLL

How to get X509Certificate thumbprint in Javascript?

。_饼干妹妹 提交于 2019-12-10 21:07:51
问题 I need to write a function in javascript (forge) that get a thumbnail of a pfx certificate. I created a test certificate(mypfx.pfx). By using c# X509Certificate2 library, I can see thumbprint of input certificate in X509Certificate2 object by passing file bytes array and password. Here is c# code snippet: X509Certificate2 certificate = new X509Certificate2(byteArrayCertData, password); var thumbprint = certificate.Thumbprint; //thumbprint is a hex encoding SHA-1 hash But when I am trying to

How to get Container name for PFX key?

人盡茶涼 提交于 2019-12-10 10:13:20
问题 Some time ago I installed my PFX key into Container using command like this: sn -i mykey.pfx VS_XXX but two months later I forgot the Container name (VS_XXX), so my question is: How to get than name back? I know key name, I have this key, I know the key pass phrase. 回答1: Download the Keypal utility and double click it, you will find all the names of the key containers. You can choose between user profile and machine profile. Alternatively, enumerate the certificate store to find the

Install certificate in dotnet core docker container

这一生的挚爱 提交于 2019-12-10 04:33:48
问题 Previously our application ran on .net framework and we used powershell to install our certificate into the certificate store by running the following command: RUN powershell -NoProfile -Command \ $Secure_String_Pwd = ConvertTo-SecureString "ourverysecretpassword" -AsPlainText -Force ; \ Import-PfxCertificate -FilePath /cert.pfx -CertStoreLocation Cert:\LocalMachine\Root -Exportable -Password $Secure_String_Pwd but now we have transferred our code to .netcore, the above command wont work in

TeamCity LocalService PFX Assembly Signing - Where to Install the Certificate

假如想象 提交于 2019-12-08 17:06:09
问题 I've been looking around on this problem and whilst I've found a few "solutions" it seems that a lot of these "solutions" are stumbled upon or cannot adequtely explain what really worked. I've tried a number of the solutions but I'm still having issues. I've created a .PFX within Visual Studio. TeamCity and the Build Agent are all on my local development machine so there isn't any other PC involved in my situation. When TeamCity tries to build this project I get an error: error MSB3325: