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.
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4 days ago
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 } });
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4 days ago
Great. Thanks, Seppe!