Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.
13 changes: 0 additions & 13 deletions tests/transport/test__mtls_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,19 +620,6 @@ def test_use_metadata(self, mock_get_client_ssl_credentials):


class TestDecryptPrivateKey(object):
def test_success(self):
decrypted_key = _mtls_helper.decrypt_private_key(
ENCRYPTED_EC_PRIVATE_KEY, PASSPHRASE_VALUE
)
private_key = crypto.load_privatekey(crypto.FILETYPE_PEM, decrypted_key)
public_key = crypto.load_publickey(crypto.FILETYPE_PEM, EC_PUBLIC_KEY)
x509 = crypto.X509()
x509.set_pubkey(public_key)

# Test the decrypted key works by signing and verification.
signature = crypto.sign(private_key, b"data", "sha256")
crypto.verify(x509, signature, b"data", "sha256")

def test_crypto_error(self):
with pytest.raises(crypto.Error):
_mtls_helper.decrypt_private_key(
Expand Down