mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Make chisel2 use josepy.
This commit is contained in:
parent
6cf656a68f
commit
b42c23d896
1 changed files with 2 additions and 2 deletions
|
|
@ -23,12 +23,12 @@ from cryptography import x509
|
|||
from cryptography.hazmat.primitives import hashes
|
||||
|
||||
import OpenSSL
|
||||
import josepy
|
||||
|
||||
from acme import challenges
|
||||
from acme import client as acme_client
|
||||
from acme import crypto_util as acme_crypto_util
|
||||
from acme import errors as acme_errors
|
||||
from acme import jose
|
||||
from acme import messages
|
||||
from acme import standalone
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ DIRECTORY = os.getenv('DIRECTORY', 'http://localhost:4001/directory')
|
|||
|
||||
def make_client(email=None):
|
||||
"""Build an acme.Client and register a new account with a random key."""
|
||||
key = jose.JWKRSA(key=rsa.generate_private_key(65537, 2048, default_backend()))
|
||||
key = josepy.JWKRSA(key=rsa.generate_private_key(65537, 2048, default_backend()))
|
||||
|
||||
net = acme_client.ClientNetwork(key, acme_version=2,
|
||||
user_agent="Boulder integration tester")
|
||||
|
|
|
|||
Loading…
Reference in a new issue