Questions tagged [pfx]

pfx is a file format containing public key together with the private key for encryption and chain of trust certificates attached to the public key if such a chain exists. Pfx files are protected by a password to access.

PKCS#12, that is Public-Key Cryptography Standard number 12, allows all the identity informations to be encrypted in a single cummulative carrier to be utilized and exchanged. That carrier is the pfx file that includes the public key, the private key, and attached certificates and identities accompanying them.

604 questions
13
votes
4 answers

Why I get "The specified PFX password is not correct" when trying to sign application with signtool?

I followed this link to sign my exe application. I installed SDK tool on Windows 7, run C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>makecert.exe -sv App-O.pvk -n "CN=MY DIGITAL KEY" App-O.cer Dialog opened to provide password: I wrote…
Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225
12
votes
5 answers

PFX to JKS keytool conversion: Alias <*> does not exist

I'm trying to convert x.PFX file to x.JKS file using keytool but I am getting following error: keytool error: java.lang.Exception: Alias <2> does not exist Actions that preceded this error are: Listing x.PFX file content (just to read alias name):…
mrle
  • 311
  • 1
  • 5
  • 13
11
votes
2 answers

Store X509 Certificate in database

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…
user586254
11
votes
4 answers

C# Parallel Vs. Threaded code performance

I've been testing the performance of System.Threading.Parallel vs a Threading and I'm surprised to see Parallel taking longer to finish tasks than threading. I'm sure it's due to my limited knowledge of Parallel, which I just started reading up…
ace
  • 2,141
  • 7
  • 29
  • 39
11
votes
2 answers

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

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…
user134926
  • 291
  • 3
  • 9
10
votes
2 answers

Strong naming with PFX

I'm trying to strong name an assembly with a PFX file that is also used for digitally signing. The PFX certificate has the CodeSigning option and was provided by a CA. When I try to use it I get the following error: error MSB3325: Cannot import the…
Chris
  • 12,192
  • 5
  • 21
  • 23
10
votes
2 answers

How to extract certificate from .p12 (PFX) file using KEYTOOL commands

I want to extract certificate from a .p12 file. I can't use openssl as it is not allowed in my organization. Is keytool able to extract the certificate, or is there any other way by which I can get this certificate extracted? Do I require the…
Vaibhav Dwivedi
  • 115
  • 1
  • 3
  • 8
10
votes
1 answer

Root and intermediate certificates installation in Azure Web App?

I have an Azure Web App that communicates with a third party API, which uses OAuth 1.0a or similar and as part of that requires an SSL certificate. The provided SSL certificate I need to use comes with its own certificate chain (root, intermediate…
Ivan Zlatev
  • 13,016
  • 9
  • 41
  • 50
10
votes
2 answers

Setting private key permissions with PowerShell

I have a PowerShell script that installs pfx certificate into the LocalMachine certificate store. The function looks like this: function Add-Certificate { param ( [Parameter(Position=1, Mandatory=$true)] [ValidateNotNullOrEmpty()] …
stephenl
  • 3,119
  • 4
  • 22
  • 22
10
votes
2 answers

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

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…
abmv
  • 7,042
  • 17
  • 62
  • 100
9
votes
6 answers

How can I generate a .pfx file?

Is there any way to create .pfx files in order to sign documents, I've found a program called x509 Certificate Generate,but I want to know if it can be generated in code using c#.
user773456
  • 611
  • 2
  • 9
  • 14
9
votes
2 answers

How to trust a certificate in Windows Powershell

I am using Windows 7, and want to run signed scripts from Powershell, the security-settings of Powershell are set to "all-signed", and my scripts are signed with a valid certificate from my company. I have also added the .pfx-file to my local…
Erik
  • 2,316
  • 9
  • 36
  • 58
9
votes
2 answers

How to cancel a task that is waiting with a timeout without exceptions being thrown

When canceling a task that has a timeout (before the timeout has ended) using a cancel token an exception is thrown. Example: mytask.start(); bool didTaskRunInTime = mytask.wait(5 mins, _cancelToken); Which means I cannot go on like below. //was…
Gullu
  • 3,477
  • 7
  • 43
  • 70
9
votes
2 answers

What is the standard practice for starting a task with multiple parameters

Right now I have class MyParamClass { all the parameters I need to pass to the task } MyParamClass myParamObj = new MyParamClass(); myParamObj.FirstParam = xyz; myParamObj.SecondParam = abc; mytask = new Task(myMethod,…
Gullu
  • 3,477
  • 7
  • 43
  • 70
9
votes
1 answer

Running tSQLt project from sources fails on the due to the Public Token mismatch

I'm trying to do some improvements for tSQLt framework and I'm mostly finish, but can't do that as few tests related to the certificate I wasn't touching are still failing: [exec] |18|[InstallExternalAccessKeyTests].[test creates correct…
Dmitrij Kultasev
  • 5,447
  • 5
  • 44
  • 88