Skip to content

Commit

Permalink
Use correct function for key retrieval in resource provenance code
Browse files Browse the repository at this point in the history
  • Loading branch information
kipparker committed Feb 12, 2025
1 parent dc5cf9d commit 4df96ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resource/api/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def create_provenance_records(
signer_edp_certs = x509.load_pem_x509_certificates(
get_certificate(conf.SIGNING_BUNDLE)
)
with open(conf.SIGNING_KEY, "rb") as key_file:
private_key = serialization.load_pem_private_key(key_file.read(), password=None)
private_key = get_key(conf.SIGNING_KEY)
signer_edp = SignerInMemory(
certificate_provider,
signer_edp_certs, # list containing certificate and issuer chain
Expand Down

0 comments on commit 4df96ee

Please sign in to comment.