This article describes how to recover a private key after you use the Certificates Microsoft Management Console (MMC) snap-in to delete the original certificate in Internet Information Services (IIS). Original product version: Internet Information Services Original KB number: 889651. Summary. You delete the original certificate from the personal folder in the
Once in the directory of your choice in cmd, use the following command to generate an RSA private key . openssl genrsa -out privatekey.pem 2048. On successful execution of the above command, a file named "privatekey.pem" will be created on your present directory. Export the public key from the key pair generated using the command below.
If someone get a problems like me too. Open file "settings.json" in folder "win-acme" and change "PrivateKeyExportable": false, (on true,) after that in "windows certificates center" do export and choose "with privatekey" and follow Next. Saving PFX file on PC and do convert .pfx to .pem