Skip to content

Instantly share code, notes, and snippets.

@pablomaurer
Last active October 3, 2016 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablomaurer/ee51d68a24e1015258b79203f856b974 to your computer and use it in GitHub Desktop.
Save pablomaurer/ee51d68a24e1015258b79203f856b974 to your computer and use it in GitHub Desktop.
Setup for CouchDB 2 with Letsencrypt on Windows

Setup for CouchDB 2 with Letsencrypt on Windows

Because I had some problems getting it to work on Windows here is the final Solution.

ciphers

Test how good you SSL Setup is with ssllabs.

Can't Start
----
ECDHE-RSA-AES128-GCM-SHA256
ECDHE-RSA-AES256-GCM-SHA384
AES128-GCM-SHA256
AES256-GCM-SHA384
AES128-GCM-SHA384

ERR_SSL_VERSION_OR_CIPHER_MISMATCH
----
ECDHE-RSA-AES128-SHA256
ECDHE-RSA-AES256-SHA384
AES128-SHA256
AES256-SHA256

WORKS
----
ECDHE-RSA-AES128-SHA
ECDHE-RSA-AES256-SHA
AES128-SHA
AES256-SHA

ciphers = undefined // sslabs grade "C", better use the 4 woking above to get grade "A-"

local.ini

[chttpd]
bind_address = 0.0.0.0

[daemons]
httpsd = {chttpd, start_link, [https]} 

[ssl]
cert_file = C:/letsencrypt/etc/live/tools.amanninformatik.ch/cert.pem
key_file = C:/letsencrypt/etc/live/tools.amanninformatik.ch/privkey.pem
cacert_file = C:/letsencrypt/etc/live/tools.amanninformatik.ch/fullchain.pem

secure_renegotiate = true
ciphers = ["ECDHE-RSA-AES128-SHA", "ECDHE-RSA-AES256-SHA", "AES128-SHA", "AES256-SHA"]
tls_versions = [tlsv1, 'tlsv1.1', 'tlsv1.2']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment