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
0
votes
1 answer

How to get validity date the digital certificate in java?

I want to read information the certificate with .pfx extension, but when load the certificate occurs this error: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded Stack trace: …
fymoribe
  • 199
  • 1
  • 11
0
votes
2 answers

Click Once Trusted Publisher Issue

I have published a click once application with a trusted publisher (.pfx) certificate. I'm trying this in a enteprise environment so the certificate was generated and given to my domain administrator so it's specific to my machine. So I have the…
Rubans
  • 4,188
  • 6
  • 40
  • 58
0
votes
1 answer

Adding .pfx file to existing .pkcs8 file

I've been thrown in at the deep end here and most things are assumptions, so please correct me where I go wrong. We currently have an application that references a .pkcs8 file, which I assume is a certificate chain. Recently we've been provided with…
0
votes
1 answer

Microsoft CA, Automatic issue

Does anybody know if it's possible to issue several certificates from a CSV like this: CN=TestCertificate1, DNS=testServer1 CN=TestCertificate2, DNS=testServer2 CN=TestCertificate3, DNS=testServer3 Using a given template and getting a pfx as…
srbob
  • 533
  • 1
  • 5
  • 14
0
votes
0 answers

PFX File not reading in application when published on IIS

I have an application which is reading a PFX file and sent across a network for authentication. I have developed the application and the application is working perfectly when run from VisualStudio 2013. When run it gets loaded with IIS Express and…
smilu
  • 859
  • 7
  • 30
  • 53
0
votes
1 answer

How to get private key with asn format from pfx?

How to get private key with asn format from pfx? I need to get the private key with asn format to put to Qt's variable QSslKey to connect https server. I have to use Win32 Api to do it, and I can't use OpenSSL to transform it. First I try to get the…
lvshuchengyin
  • 235
  • 1
  • 4
  • 19
0
votes
0 answers

Null values while updating DB in Parallel.Foreach

I use following script to get data from external service and store in dB. In certain rare cases less than 1% records gets updated with null values. In below code, the "re.status=fail" we see null. let us know if any thots. public void…
Sarav
  • 117
  • 1
  • 13
0
votes
2 answers

Start-Job completes OK but output is reported as an error

I have created a PowerShell script that converts PFX certificates exported from IIS to a certificate format that works better with Apache. The script invokes an instance of openssl.exe with a series of option. It work perfectly. I am now trying to…
Local Needs
  • 537
  • 3
  • 5
  • 20
0
votes
1 answer

how to convert .cer to .pfx programatically using Java

I used bouncy castle and JSCEP to create my certificate. Now i have my private key and .cer certificate. I would now need to create pfx or p12 file out of this using Java or Bouncy castle.
shatthi
  • 656
  • 3
  • 10
  • 23
0
votes
1 answer

BouncyCastleProvider do not get PrivateKey and certificate chain from PKCS#12 file

I have file cert.pfx exported on Windows. This file contains my certificate. On Ubuntu i can open it with password and I see the certificate. But when I loaded this file: BouncyCastleProvider provider = new…
Krzysztof Szewczyk
  • 1,752
  • 1
  • 21
  • 25
0
votes
1 answer

Setting permissions on private key for a certificate using code

I have the following code where SIGNED_FILENAME is a constant pointing to an existing pfx file that contains the private key. X509Certificate2 cert = new X509Certificate2(SIGNED_FILENAME, PASSWORD,…
Mike Cheel
  • 12,626
  • 10
  • 72
  • 101
0
votes
1 answer

Delphi - Load PFX Certificates without installing it on Windows using CAPICOM

I'm using CAPICOM to load a certificate needed by a WebService client. I need to have the certificate installed in Windows, and then open it from the certificate file itself, which I think is "kinda stupid". Is there any way to either (in order of…
nunopicado
  • 307
  • 4
  • 17
0
votes
0 answers

Strong Key protection error while creating digital certificate

I am using this code to create pfx: public static void createpfx(string password) { // create DN for subject var dnsubject = new CX500DistinguishedName(); dnsubject.Encode("CN=FileHasher",…
Ankush
  • 63
  • 9
0
votes
1 answer

Convert java keystore to PFX through java programming

I need to support the same functionality of Keytool.exe to convert java keystore to PFX file through programming by using KeyTool class. I cant use command prompt process from my application due to the project requirement limitation so through…
wolvorinePk
  • 1,760
  • 5
  • 36
  • 67
0
votes
1 answer

I have a pfx file can I create a certificate witha private key from that

I am a little confused on all this certificate stuff. I want to create a certificate with a private key (exportable if possible). How do I do that. I already have a .pfx file. Can I use that to create a certificate with that private key?
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195