I've lost my pfx certificate file and i'm asking myself if i can create a new one with a specific PublicKeyToken.
Is that possible to do that ?
Thank you
I've lost my pfx certificate file and i'm asking myself if i can create a new one with a specific PublicKeyToken.
Is that possible to do that ?
Thank you
That cannot be done, as mentioned by Anders Stubberup the public key has a relation to the private key. This is called an assymetrical cryptography, or public-key cryptography. Here the public key is used for encrypting data and the private key is used for decryption of the data.
Certificates are not generated with symmetric cryptography because then every users could make copies of the certificate and that could lead to false certificates and exploitation of those certificates.
A handy link to the workings of a ssl certificates and (a)symmetric encryption.
It would be best to generate another certificate and store the private key etc that are needed for generation of the certificate somewhere safe.
The public key have a mathematical relationship with the private key.
see this Wikipedia article "https://en.wikipedia.org/wiki/Public-key_cryptography"
So with a specific public key you will get a specific private key