Business Central 14 The remote certificate is invalid according to the validation procedure

sebsidsebsid Member Posts: 27
We use the ECB (European central bank) exchange rate service. When i add the URL in BC, https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml, i get error "The remote certificate is invalid according to the validation procedure". I've checked that the root certificate for the issuer Entrust is there and if i go to the URL using the browser on the same server the certificate is ok. It seems i get the this error when i use an https address so maybe there's a bug in BC?

a05ulh392b43.png

Answers

  • UGTUGT Member Posts: 1
    Try before call SendRequest
    ServicePointManager.CheckCertificateRevocationList := false;
    assembly("System")
    {
    Version = '4.0.0.0';
    Culture = 'neutral';
    PublicKeyToken = 'b77a5c561934e089';
    Type("System.Net.ServicePointManager"; ServicePointManager) { }
    }
    ....
    ServicePointManager: dotnet ServicePointManager;
  • BHochstetterBHochstetter Member Posts: 2
    You can try to the Set-NAVServerConfiguration -ServerInstance LIDL_PreTurn_AMS_Entw_v140 -KeyName "CheckCertificateRevocationList" -KeyValue "False"
Sign In or Register to comment.