Hi,
There is a possibility that we may have to work with an API that will enforced mTLS. Does Dataminer support this? If so, are there instructions on how to implement? We are on 10.5.1. Thanks.
Seppe Dejonckheere [SLC] [DevOps Advocate] Answered question 24th April 2025
Hi,
It should be possible to integrate with an API using mTLS from QActions or automationscript by sending the API requests via a HttpClient in C#. The implementation would look something like this:
// Load the client certificate</span> X509Certificate2 clientCert = new X509Certificate2("C:\\path\\to\\cert.p12", cert_pwd); // Create an HttpClient HttpClient client = new HttpClient(new HttpClientHandler { ClientCertificateOptions = ClientCertificateOption.Manual, ClientCertificates = { clientCert } });
Berman Hsieh Posted new comment 7 days ago
Great. Thanks, Seppe!