Closed philoliver closed 1 month ago
It turns out that I was provided a server certificate
rather than a CA certificate
. I don't know how the other application accepted it. With the correct certificate it works!
For anyone who finds himself in the same situation. Use the following command to view the certificate details:
openssl x509 -in <certificate-file> -text -noout
According to my understanding, if you file does not have the following lines, it is not a CA certificate:
X509v3 Basic Constraints: critical
CA:TRUE
Hi, I am trying to connect to a broker that uses a self-signed certificate, however, I get a
BadSignature
error. The certificate works with another application (using other language/libraries). I'd really appreciate any help how should go ahead.Current Behavior
Error on poll: Tls(Io(Custom { kind: InvalidData, error: InvalidCertificate(BadSignature) })
Code
Certificate