Update plugin.py
This commit is contained in:
parent
aa5200b85f
commit
ed3472d029
|
@ -209,7 +209,7 @@ class VerisignIssuerPlugin(IssuerPlugin):
|
||||||
|
|
||||||
response = self.session.post(url, data=data)
|
response = self.session.post(url, data=data)
|
||||||
try:
|
try:
|
||||||
response_dict = handle_response(response.content)
|
response_dict = handle_response(response.content)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
metrics.send(
|
metrics.send(
|
||||||
"verisign_create_certificate_error",
|
"verisign_create_certificate_error",
|
||||||
|
@ -225,7 +225,7 @@ class VerisignIssuerPlugin(IssuerPlugin):
|
||||||
authority = issuer_options.get("authority").name.upper()
|
authority = issuer_options.get("authority").name.upper()
|
||||||
cert = response_dict['Response']['Certificate']
|
cert = response_dict['Response']['Certificate']
|
||||||
external_id = response_dict['Response']['Transaction_ID']
|
external_id = response_dict['Response']['Transaction_ID']
|
||||||
chain = current_app.config.get("VERISIGN_INTERMEDIATE_{0}".format(authority), current_app.config.get("VERISIGN_INTERMEDIATE"))
|
chain = current_app.config.get("VERISIGN_INTERMEDIATE_{0}".format(authority), current_app.config.get("VERISIGN_INTERMEDIATE"))
|
||||||
return cert, chain, external_id
|
return cert, chain, external_id
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue