Certificate Issue - Renewing Cert for ADFS - Cryptography CNG
Scenario:
I am renewing a Service Coms Cert for ADFS and i got the below error message.
Also if you are trying to bind the Cert on IIS Manager, you cannot see the cert in Server Cert. But if you check on mmc > Local machine > Personal you can see that Cert and it is present in their.
Another issue is when you try to Set the server on Wap Server error apprears.
Solution:
1. Export the Certficate to pfx and save and put password in it. You can do this on a server where in you generate the cert.
2. Then Delete the cert on the machine
3. If you have the OLD Cert that you are trying replace run the below command and check the provider. See below screenshot. You need that because you need to put that on the 2nd command on the CSP.
4. Run the below commands
certutil -csp "Microsoft Enhanced Cryptographic Provider v1.0" -importpfx my NewPFXfileyouCreated.pfx
Then Boom the new Cert are all good now. you can export the new Cert and install on WAP as well.
PS i did not try on my Prod if by exporting the PFX and install directly without running the above commands will run. i will try it later....
Comments
Post a Comment