Hi @Nabeel Farooq,
There are many reasons that may cause this error message.
You can troubleshoot based on the following points:
- Check PFX file.
Problem was, it was exported using AES256-SHA256 encryption, which threw the same exception as in the question. According to this, AES256-SHA256 is only supported on Windows 10 1703, Windows Server 2016 and above. Changing to TripleDES-SHA1 'solved' the issue.
- The 'the specified network password is not correct' error message is also returned when the certificate you are trying to import in one of the OS stores is already present in that store.
- Try changing the Identity in the application pool to NetworkService.
- Check password length:
0 < password.Length < 32
Links that may be helpful:
ASP.NET - The specified network password is not correct
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.