web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

API Integration - The remote certificate is invalid according to the validation procedure.

(1) ShareShare
ReportReport
Posted on by 41
Hello All,
 
I am working on a API POST HTTP web request integration from D365 FO to a third party service.
 
I have the digitally signed certificate from third party service. I have added the certificate in System admin - setup - key vault parameters and retrieved in code like below
 
 KeyVaultCertificateTable    certificateTableUnikCert       = KeyVaultCertificateTable::findByName(/****/); boolean                     unikCert                      = KeyVaultCertificateHelper::validateCertificate(certificateTableUnikCert.RecId); X509Certificate2            digitalCert                   = KeyVaultCertificateHelper::getDigitalCertificate(certificateTableUnikCert.RecId);
 
After this I have added the X509 certification to X509 certificate collection and assigned the certificate to Http web request. Even after attaching it gives me the error - /The remote certificate is invalid according to the validation procedure./ I have used the below code for this.
System.Security.Cryptography.X509Certificates.X509Certificate2Collection collection = new System.Security.Cryptography.X509Certificates.X509Certificate2Collection();collection.Add(digitalCert);httprequest.ClientCertificates = collection;
when i asked about this to my third party, they ask me to export and trust the certificate in D365 FO. But i am not sure how to do that. If any one had come across the same issue, let me know the ways to handle this.
 
thank you in advance
I have the same question (0)
  • Community member Profile Picture
    2 on at
    Hello @monika, Were you able to resolve this issue related to Digital Signature?
  • fsilva-jr Profile Picture
    20 on at
    What kind of certificate are you using? .pfx?...
    Was it added to your Azure Key Vault?
    Last time i got this error i spent one month to find out that the one who created the certificate was doing it wrongly...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 452 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 349 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans