Skip to content

Commit

Permalink
reintroduce default_backend to vault supporting container
Browse files Browse the repository at this point in the history
  • Loading branch information
iliakur committed Nov 23, 2022
1 parent 77373a2 commit b436c57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault/tests/docker/provider/run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
from datetime import datetime, timedelta, timezone

import jwt
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization


def main():
with open('/home/run/priv.pem', 'rb') as f:
private_key = serialization.load_pem_private_key(f.read(), password=None)
private_key = serialization.load_pem_private_key(f.read(), password=None, backend=default_backend())

serialized_private = private_key.private_bytes(
encoding=serialization.Encoding.PEM,
Expand Down

0 comments on commit b436c57

Please sign in to comment.