TcM1911 / jamsonic

Subsonic console player for Linux, macOS and Windows
GNU General Public License v3.0
3 stars 1 forks source link

Can't connect to SubSonic server (certificate signed by unknown authority) #36

Open jinithin opened 5 years ago

jinithin commented 5 years ago

I'm getting a problem where it doesn't trust the ssl certificate of my server. Is there anywhere I can override this?

[Info] [Subsonic client] 2019/01/21 14:26:37 Testing credentials.
[Error] 2019/01/21 14:26:38 Can't connect to SubSonic server: Get https://airsonic.domain.com/airsonic/rest/ping.view?u=username&t=asd&s=asd&v=1.13.0&c=Jamsonic&f=json: x509: certificate signed by unknown authority 

Thanks.

TcM1911 commented 5 years ago

If you add the CA for the certificate to your certificate store, it will work. On Windows and macOS Go looks in the OS's trust store, on Linux it looks in these locations: https://golang.org/src/crypto/x509/root_linux.go. Other Unix systems: https://golang.org/src/crypto/x509/root_unix.go