Solved

The remote certificate is invalid according to the validation procedure.

Posted on 2009-05-18
1
2,601 Views
Last Modified: 2013-11-30
Hello,
I'm trying to send E-mail using System.Net.Mail in a Windows Forms application in C#.
I'm getting the following error..

"The remote certificate is invalid according to the validation procedure."

Please help me with this..
Thanks,.
0
Comment
Question by:godwindotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
Paranormastic earned 500 total points
ID: 24411860
There are 3 primary reasons why a cert won't validate:

1) Name mismatch - make sure the site name matches exactly as it is in the cert.  If there is a "Subject Alternative Name" (SAN) on the details tab, then make sure the name is in that list (note: subject name must also be included in the SAN).  Some applications don't supports SANs, but most do.  Also note that site1 and site1.domain.com are not the same - this is the most common mistake.

2) Untrusted - you need to install the root certificate into the trusted root certificate store.  If this app uses the Microsoft root store, you can check Certificates MMC to see if it shows up.  If not, view the details of the certificate from the error box, go to the certification path tab and double click the topmost certificate, go to details tab and Copy to File button to export it, then from your saved copy you can import it to the trusted root store.

3) Expired or not yet valid - usually from the cert expiring - renew it.  Can also happen if the time/time zone/date/year is off in the client OS - if this is ok, try also checking the same in BIOS.

If this doesn't get you in the right direction, you need a little bit more specific details how it is not coming up as valid - if you have a debug version try doing that so you can get more details.  If you are writing an app that deals with certs, you should try to mimic each of the 3 sections above for correct error handling and better warning messages.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question