You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,50 @@ Users can quickly get started by referring to the use cases under the Apache-IoT
63
63
64
64
For those who wish to delve deeper into the client's usage and explore more advanced features, the samples directory contains additional code samples.
65
65
66
+
## TLS and mTLS
67
+
68
+
Enable TLS by calling `SetUseSsl(true)`. The C# client uses the .NET certificate model and does not read Java truststores directly. If your certificates were generated with the JDK 17 Java/keytool workflow, `client.keystore` is PKCS#12 by default and can be used directly as the client certificate file; use `ca.crt` directly as the trusted root.
69
+
70
+
| keytool artifact | C# client usage |
71
+
| --- | --- |
72
+
|`ca.crt`| Pass to `SetRootCertificatePath` / `RootCertificatePath` to trust the server certificate |
73
+
|`client.keystore`| Contains the client private key and certificate chain; JDK 17 creates PKCS#12 by default, so pass it directly to `SetClientCertificatePath`|
0 commit comments