-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Now that I have the console app connecting to mqtt via TLS It's time to incorporate those fixes into the xamarin forms app. Messin' with the UWP app first.
Previously I referred to two certs with .crt file name extension although this wouldn't be the solution the certs loaded if I put them in the root of the UWP app and changed properties to copy to the running solution.
X509Certificate clientCert = new X509Certificate2("ca.crt");
X509Certificate caCert = X509Certificate.CreateFromCertFile("debbie.redacted.org.crt");
The solution that works in the console application refers to a .pfx file. WAG does the .pfx introduce additional requirements? <-- WAG? I doubt it, must be something I forgot!
The way that works in the console app (other than the path)
X509Certificate clientCert = new X509Certificate2("xamarinclient.pfx", "xamarin");
X509Certificate caCert = X509Certificate.CreateFromCertFile("ca.crt");
I'm looking for guidance to read more like a blog post then just the microsoft docs. A Microsoft sample that handles certificates would be cool.