Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"x509: certificate signed by unknown authority" with Let's Encrypt certificates on (some) servers with .well-known #59

Closed
babolivier opened this issue Feb 28, 2019 · 6 comments

Comments

@babolivier
Copy link
Contributor

When running the federation tester against my homeserver (abolivier.bzh), which is serving a valid Let's Encrypt certificates, and is delegating traffic via .well-known, the federation tester errors at cert verification with x509: certificate signed by unknown authority.

@babolivier
Copy link
Contributor Author

Config issue on my side.

@aaronraimist
Copy link

If you come across this issue and you are using Let's Encrypt certs make sure you are using full chain.pem rather than cert.pem.

matrix-org/synapse#4764

@skerit
Copy link

skerit commented Jun 28, 2019

If you come across this issue and you are using Let's Encrypt certs make sure you are using full chain.pem rather than cert.pem.

matrix-org/synapse#4764

Finally, that fixed it!

Good thing they added that piece of info to the INSTALL.md file, but by now I was just looking at the MSC1711_certificates_FAQ.md file.

@IcedEagle
Copy link

Leaving a note on this for anyone who sets this up using Synology NAS, with LetsEncrypt certificates you get through the Synology DSM. Synology doesn't give you the full chain by default, so you need to combine the cert and chain files yourself.

When you export your certificate, open a text editor and take the contents of RSA-cert.pem and paste it to the top of RSA-chain.pem. This new file should consist of your cert first, followed by the rest of the chain, therefore a full chain. Use this new file as the fullchain cert you use on your server and you're good to go.

@chagai95
Copy link

@IcedEagle thx for your comment! I'm afraid this did not completely work for me but it might be because I'm using ZeroSSL, does anybody know perhaps why this is happening to me?
https://federationtester.matrix.org/#chagai.website

@chagai95
Copy link

Ah seems like I did this only for my base domain and not for the matrix domain, now it seems to be working, thx a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants