I have generated the CSR request on our windows server ( we need to bind our application hosted on this server for Https) using below commands in keytool:
Keytool -genkey -alias <server name> -keyalg RSA -keysize 2048 -keystore <server name>.keystore
keytool -certreq -keyalg RSA -alias <server name> -file certreq.csr -keystore <server name>.keystore
After this I got one csr and and keystore files, which I forwarded for issuing SSL. The team gave me a zip files as the certificate ( containing one .cer and one .p7b file). Now I am not sure how to use these two files in IIS.
What we have tried so far:
- Imported the .cer in IIS using Complete Certificate Request option, but the certificate disappears from IIS when we check again.
- Imported the .p7b in IIS using Complete Certificate Request option, but the certificate disappears in this case also.
- Imported the .cer in certificate store in personal certificate, but it does not appear in IIS settings.
- Imported the .p7b in certificate store in intermediate certificates, but it does not appear in IIS settings.
- Imported the .cer in certificate store in personal certificate and .p7b file in intermediate certificates, but no certificate appears in IIS settings.
- Tried to export the certificate in PFX format from certificate store, but while export, the pfx option is greyed out.