csr as string (#542)
This commit is contained in:
parent
588ac1d6a6
commit
f9b16a2110
|
@ -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'))
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue