Search code examples
c#certificateclickoncepublickeytoken

Create pfx certificate with a specific PublicKeyToken


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


Solution

  • Edit: to clarify it is correct that there is a mathematical relationship as mentioned in the original answer.

    But it is not possible to create a private key from a public key.

    Original: 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