'Issue using certificate with .CRT

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.



Solution 1:[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.

More Info here and here

To Load the Userprofile for an Application pool in IIS follow these steps (copied from here):

  1. Go to IIS Manager
  2. Go to the application pool instance
  3. Click advanced settings
  4. Under Process model, set Load User Profile to true

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DaBeSoft