简体   繁体   中英

certificate invalid after publish asp.net

Im having trouble with my certificate which is required to communicate with a third party web service. When ever I run my application from VS everything works fine. When I publish this application to the IIS server and run it I get a certificate error. Its not an exception, its an error message from the third party service telling me the certificate is invalid. At some point in the publishing process the certificate is altered or something else, but I have no idea where, why or what to do.

Some extra info, just so you know this isnt the problem:

I had some other issues with the certificate after publishing, which was the IIS not being able to load it. This error gave me an exception when trying to create the request. This problem I fixed that by making the application pool load user profile.

Edit

I had to set application pool identity to localSystem.

Check your app in IIS. See if the certificate is properly installed - you may see something like this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM