Closed michael-aiphone closed 1 month ago
It should be possible using NIOSSLCertificate
. You can see an example how to use it with this library here: https://github.com/sroebert/mqtt-nio/blob/36c3ff059a7ecfcea708a13b166bdd443b2f201b/Tests/MQTTNIOTests/Core/MQTTNIOTestCase.swift#L122
For more documentation on how to setup the SSL certificates, you can look at the docs (and possibly examples) in the niossl library: https://swiftpackageindex.com/apple/swift-nio-ssl/2.27.0/documentation/niossl
I need to establish an authenticated connection with an AWS IoT broker. At runtime I am given a cert (as string) and a private key (as a string). I need to use these credentials to pass authentication. Is there a way to leverage this package to meet this need?
For reference here is what I get when I attempt to connect() with a default client configuration init with url.