Adding support for private DigiCert certificates (#835)

This commit is contained in:
Asbjørn Kjær
2017-06-14 09:20:24 -07:00
committed by kevgliss
parent e77382864b
commit 35cc7ef8d7
2 changed files with 11 additions and 0 deletions

View File

@ -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