How do I correctly configure MongoDB to use Letsencrypt SSL on Ubuntu?
I have created an SSL certificate using Letsencrypt and combined it via:
cat /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/privkey.pem > /etc/ssl/mongo.pem
And setup mongo config like:
net:
port: 27017
bindIp: 0.0.0.0
ssl:
mode: requireSSL
PEMKeyFile: /etc/ssl/mongo.pem
But I get this error when trying to start Mongo:
No SSL certificate validation can be performed since no CA file has been provided; please specify an sslCAFile parameter
How do I correctly set the CAFile? Doesn't Ubuntu typically use a "CA Path" with a bunch of different root certs in their own files? I tried using the CURL CA bundle but that didn't work either.
Im using Mongo v3.0.12 and Ubuntu 14.04