Changes

From SME Server
Jump to navigationJump to search
1,179 bytes added ,  19:14, 23 November 2019
API required for new certs
Line 144: Line 144:  
Please first read the condition terms for using Let's Encrypt [[https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf]]
 
Please first read the condition terms for using Let's Encrypt [[https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf]]
 
  config setprop letsencrypt ACCEPT_TERMS yes
 
  config setprop letsencrypt ACCEPT_TERMS yes
 +
 +
{{Note box|Creation of a new certificate requires the API being set to V2, see warning box above}}
 +
 +
===V2 API===
 +
With the latest version of letsencrypt/dehydrated the V2 API is needed to create new certificates, V1 is depreciated for creation of new certificates however is still valid for existing certificates created with it.
 +
 +
The key is called API. It will default to '1' if left unset. Options are '1', '2', 'auto'
 +
 +
For updating current V1 certificates leave as default or set to 1, auto
 +
 +
# config show letsencrypt
 +
letsencrypt=service
 +
    ACCEPT_TERMS=yes
 +
    configure=none
 +
    email=####@#####.###
 +
    hookScript=disabled
 +
    status=enabled
 +
 +
# config setprop letsencrypt API 1
 +
# signal-event console-save
 +
 +
# config show letsencrypt
 +
letsencrypt=service
 +
    ACCEPT_TERMS=yes
 +
    API=1
 +
    configure=none
 +
    email=####@#####.###
 +
    hookScript=disabled
 +
    status=enabled
 +
 +
For creating a new certificate or updating a V2 set to 2
 +
 +
# config setprop letsencrypt API 2
 +
# signal-event console-save
 +
 +
# config show letsencrypt
 +
letsencrypt=service
 +
    ACCEPT_TERMS=yes
 +
    API=2
 +
    configure=none
 +
    email=####@#####.###
 +
    hookScript=disabled
 +
    status=enabled
    
===Enable Test Mode===
 
===Enable Test Mode===

Navigation menu