Commit 184b9b8d by Vincent Pelletier

ca: Fold a local into its only usage place.

1 parent e8eeb3ce
......@@ -291,9 +291,6 @@ class CertificateAuthority(object):
ca_crt = ca_key_pair['crt']
public_key = csr.public_key()
subject_key_identifier = x509.SubjectKeyIdentifier.from_public_key(
public_key,
)
now = datetime.datetime.utcnow()
builder = x509.CertificateBuilder(
subject_name=template_csr.subject,
......@@ -311,7 +308,9 @@ class CertificateAuthority(object):
critical=True, # "MAY appear as critical or non-critical"
),
Extension(
subject_key_identifier,
x509.SubjectKeyIdentifier.from_public_key(
public_key,
),
critical=False, # "MUST mark this extension as non-critical"
),
Extension(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!