After I renewed my certificate I cant’t access couchdb through https. Nothing changed in the configuration file. Only the renewal was done. It works over port 5984 without https but not on 6984 with https
My domain is: hotelbee.tk
I ran this command: sudo certbot --config-dir /opt/couchdb/letsencrypt renew
My web server is (include version): Ubuntu 18.04
My hosting provider, if applicable, is: Digitalocean
I couldn’t find explicit documentation stating what to do when replacing a certificate in CouchDB, but have you tried issuing a SIGHUP or reloading the process assuming CouchDB has a reload function. If all of that fails, the CouchDB docs state that when configuring a TLS cert you should restart the process, but that can lead to a temporary outage every 90 days https://docs.couchdb.org/en/1.3.0/ssl.html. Worst case scenario you might want to look into fronting CouchDB with HAProxy or Nginx.
Do your logs give any insight as to why the new cert hasn’t been picked up?
$ echo | openssl s_client -connect hotelbee.tk:6984 -servername hotelbee.tk 2>/dev/null
CONNECTED(00000003)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 323 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
$ telnet hotelbee.tk 5984
Trying 46.101.112.224...
Connected to hotelbee.tk.
Escape character is '^]'.
^]
telnet> \q
Connection closed.
$ telnet hotelbee.tk 6984
Trying 46.101.112.224...
Connected to hotelbee.tk.
Escape character is '^]'.
Connection closed by foreign host.