csr as string (#542)

This commit is contained in:
kevgliss 2016-11-29 18:50:20 -08:00 committed by GitHub
parent 588ac1d6a6
commit f9b16a2110
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class CfsslIssuerPlugin(IssuerPlugin):
url = "{0}{1}".format(current_app.config.get('CFSSL_URL'), '/api/v1/cfssl/sign')
data = {'certificate_request': csr.decode('utf_8')}
data = {'certificate_request': csr}
data = json.dumps(data)
response = self.session.post(url, data=data.encode(encoding='utf_8', errors='strict'))

View File

@ -63,7 +63,7 @@ def build_root_certificate(options):
def issue_certificate(csr, options):
csr = x509.load_pem_x509_csr(csr, default_backend())
csr = x509.load_pem_x509_csr(csr.encode('utf-8'), default_backend())
builder = x509.CertificateBuilder(
issuer_name=x509.Name([