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
 This is passed on to Let's Encrypt, and may be used for important service
55
 This is passed on to Let's Encrypt, and may be used for important service
56
 announcements.
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
 ### Running
62
 ### Running
59
 
63
 
60
 Here's a full worked example:
64
 Here's a full worked example:

+ 1
- 1
config View File

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

Loading…
Cancel
Save