After Registering with Swims to be a certified vendor we will create, and send you.

·       RootCertificate.cer

·       ClientCertificate.pfx

·       Client Certificate Password

On the server that connects to the API, import RootCertificate.cer into Certificates (Local Computer) -> Trusted Root Certification Authorities.

C# example:

using System.Security.Authentication;

using System.Security.Cryptography.X509Certificates;

 

HttpClientHandler httpClientHandler = new HttpClientHandler ()

{

    ClientCertificateOptions = ClientCertificateOption.Manual,

    SslProtocols = SslProtocols.Tls12

};

 

X509Certificate2 x509Certificate2 = new X509Certificate2(@"<Path to ClientCertificate.pfx>", "<Client Certificate Password>");

httpClientHandler.ClientCertificates.Add(x509Certificate2);

 

HttpClient httpClient = new HttpClient(httpClientHandler);

HttpResponseMessage httpResponseMessage = await httpClient.GetAsync("<URL of API Endpoint>");