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

Announcements

No record found.

News and Announcements icon
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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans