Commit 184b9b8d authored by Vincent Pelletier's avatar Vincent Pelletier

ca: Fold a local into its only usage place.

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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment