Fix DigiCert issuer plugin revoke URL (#1041)

The URL for revoking DigiCert certificates was incorrect.

Change-Id: I39fb7d290a2a649ab08a47e7dcbe18a8c0bd8a59
This commit is contained in:
James Chuong 2018-01-11 17:12:21 -08:00 committed by kevgliss
parent 77044f56fc
commit 050295ea20
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ class DigiCertIssuerPlugin(IssuerPlugin):
base_url = current_app.config.get('DIGICERT_URL') base_url = current_app.config.get('DIGICERT_URL')
# make certificate revoke request # make certificate revoke request
create_url = '{0}/certificate/{1}/revoke'.format(base_url, certificate.external_id) create_url = '{0}/services/v2/certificate/{1}/revoke'.format(base_url, certificate.external_id)
metrics.send('digicert_revoke_certificate', 'counter', 1) metrics.send('digicert_revoke_certificate', 'counter', 1)
response = self.session.put(create_url, data=json.dumps({'comments': comments})) response = self.session.put(create_url, data=json.dumps({'comments': comments}))
return handle_response(response) return handle_response(response)