I’m trying to write an E2E test for a simple Thing provisioning flow.
My Node.js application creates a Thing, assigns it with certificates and then returns these certificates to the test, which attempts to connect to MQTT.
The Node.js calls CreateKeysAndCertificate, but it seems like the certificate created is not a valid PEM format.
On the other side, the test attempts to use the v2 js SDK which uses AWSCRT under the hood, and does not manage to connect, even if I not try to send a cert at all, due to TLS handshake issues.
I see only a Pyhton example in the localstack-pro-samples repo, which seems to be very far from the Node.js APIs.
Can you refer me to a working example that uses Node.js?
Alternately, what might I be missing? why would Localstack create bad certificates?