Adding support for private DigiCert certificates (#835)
This commit is contained in:
parent
e77382864b
commit
35cc7ef8d7
@ -466,6 +466,11 @@ The following configuration properties are required to use the Digicert issuer p
|
||||
This is the default validity (in years), if no end date is specified. (Default: 1)
|
||||
|
||||
|
||||
.. data:: DIGICERT_PRIVATE
|
||||
:noindex:
|
||||
|
||||
This is whether or not to issue a private certificate. (Default: False)
|
||||
|
||||
|
||||
CFSSL Issuer Plugin
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -126,6 +126,12 @@ def map_fields(options, csr):
|
||||
else:
|
||||
data['custom_expiration_date'] = options['validity_end'].format('YYYY-MM-DD')
|
||||
|
||||
if current_app.config.get('DIGICERT_PRIVATE', False):
|
||||
if 'product' in data:
|
||||
data['product']['type_hint'] = 'private'
|
||||
else:
|
||||
data['product'] = dict(type_hint='private')
|
||||
|
||||
return data
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user