Skip to content

Commit

Permalink
chore: Update charm libraries (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: Bartlomiej Gmerek <[email protected]>
  • Loading branch information
telcobot and Gmerold authored Feb 14, 2024
1 parent ddc7cd5 commit b5c00fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/charms/tls_certificates_interface/v3/tls_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _on_all_certificates_invalidated(self, event: AllCertificatesInvalidatedEven

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 0
LIBPATCH = 1

PYDEPS = ["cryptography", "jsonschema"]

Expand Down Expand Up @@ -707,7 +707,7 @@ def generate_ca(
private_key_object = serialization.load_pem_private_key(
private_key, password=private_key_password
)
subject = issuer = x509.Name(
subject_name = x509.Name(
[
x509.NameAttribute(x509.NameOID.COUNTRY_NAME, country),
x509.NameAttribute(x509.NameOID.COMMON_NAME, subject),
Expand All @@ -730,8 +730,8 @@ def generate_ca(
)
cert = (
x509.CertificateBuilder()
.subject_name(subject)
.issuer_name(issuer)
.subject_name(subject_name)
.issuer_name(subject_name)
.public_key(private_key_object.public_key()) # type: ignore[arg-type]
.serial_number(x509.random_serial_number())
.not_valid_before(datetime.utcnow())
Expand Down

0 comments on commit b5c00fb

Please sign in to comment.