Notify icon indicating copy to clipboard operation
Notify copied to clipboard

Can't connect to self-hosted server using own tls certificate

Open victornsc opened this issue 9 months ago • 0 comments

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.

victornsc avatar May 06 '24 18:05 victornsc