Merge pull request #2893 from sirferl/master

Fxing Issue #2831
This commit is contained in:
Hossein Shafagh 2020-01-27 09:11:38 -08:00 committed by GitHub
commit 127f7c1582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class ADCSIssuerPlugin(IssuerPlugin):
) )
current_app.logger.info("Requesting CSR: {0}".format(csr)) current_app.logger.info("Requesting CSR: {0}".format(csr))
current_app.logger.info("Issuer options: {0}".format(issuer_options)) current_app.logger.info("Issuer options: {0}".format(issuer_options))
cert, req_id = ( cert = (
ca_server.get_cert(csr, adcs_template, encoding="b64") ca_server.get_cert(csr, adcs_template, encoding="b64")
.decode("utf-8") .decode("utf-8")
.replace("\r\n", "\n") .replace("\r\n", "\n")
@ -54,7 +54,7 @@ class ADCSIssuerPlugin(IssuerPlugin):
chain = ( chain = (
ca_server.get_ca_cert(encoding="b64").decode("utf-8").replace("\r\n", "\n") ca_server.get_ca_cert(encoding="b64").decode("utf-8").replace("\r\n", "\n")
) )
return cert, chain, req_id return cert, chain, None
def revoke_certificate(self, certificate, comments): def revoke_certificate(self, certificate, comments):
raise NotImplementedError("Not implemented\n", self, certificate, comments) raise NotImplementedError("Not implemented\n", self, certificate, comments)