We are having an issue while we use the certificate with .CRT extension - The EncryptedPrivateKeyInfo structure was decoded but was not successfully interpreted, the password may be incorrect. . Using the certificate with .pfx and same key file, we are having success. Also, we are seeing the issue in our production environment only.
Asked
Active
Viewed 173 times
1
-
I'm having the same issue. Net5.0 on IIS is not working, however running locally it works fine. Have you found a solution? – Gonza Sep 14 '22 at 16:26
1 Answers
1
By default, an attempt is made to store the certificate in the user certificate store. Of course, this only works if the user profile is available.
To Load the Userprofile for an Application pool in IIS follow these steps (copied from here):
- Go to IIS Manager
- Go to the application pool instance
- Click advanced settings
- Under Process model, set Load User Profile to true

DaBeSoft
- 49
- 1
- 5