Reputation: 9
I have a certificate in a .PEM
file and a key.
The signing algorithm of the certificate file is SHA256WithRSAEncryption
but when I create a p12/pfx file using the certificate file and the key the Signature Algorithm of p12/pfx file changes to
"PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC
, Iteration 2048"
Is there a way I can get a SHA-2 certificate after the process?
Upvotes: 0
Views: 1505
Reputation: 94038
The certificate lists the algorithm used to sign the certificate, while the PKCS#12 store lists the method that was used to encrypt the key / certificate store.
PBE stands for Password Based Encryption, and the SHA-1 is only applicable to the way the password is transformed into a key; it has nothing to do with the certificate itself. The same certificate is still in the store if everything went well.
Notes:
Upvotes: 1