Notify
Notify copied to clipboard
Can't connect to self-hosted server using own tls certificate
I get this error when I subscribe to a topic on my self-hosted server:
0: error trying to connect: invalid peer certificate: UnknownIssuer
The server is using a certificate signed by my own CA.
I switched from rustls-tls
to rustls-tls-native-roots
and now everything works fine.
rustls-tls trust roots are baked into the library whereas native-roots gets them from the operating system, which allows us to load our own CA/certificate.
Since a lot of people are self hosting their ntfy server, I think making the change will prevent them from running into the same problem.