Browse Source

Add easy way to override key algo.

Fixes csmith/docker-letsencrypt-lexicon#2
master
Chris Smith 6 years ago
parent
commit
ca5a0a6792
Signed by: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      README.md
  2. 1
    1
      config

+ 4
- 0
README.md View File

@@ -55,6 +55,10 @@ You should pass in a contact e-mail address by setting the `EMAIL` env var.
55 55
 This is passed on to Let's Encrypt, and may be used for important service
56 56
 announcements.
57 57
 
58
+By default this container uses Eliptic Curve keys. You can override this
59
+behaviour by setting the `ALGORITHM` environment variable. Dehydrated
60
+supports the following algorithms: `rsa`, `prime256v1` and `secp384r1`.
61
+
58 62
 ### Running
59 63
 
60 64
 Here's a full worked example:

+ 1
- 1
config View File

@@ -3,7 +3,7 @@
3 3
 WELLKNOWN=/letsencrypt
4 4
 BASEDIR=/letsencrypt
5 5
 CONTACT_EMAIL=$EMAIL
6
-KEY_ALGO=secp384r1
6
+KEY_ALGO=${ALGORITHM:-secp384r1}
7 7
 
8 8
 if [ -z ${STAGING+-} ]; then
9 9
   CA="https://acme-v01.api.letsencrypt.org/directory"

Loading…
Cancel
Save