mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-22 07:25:02 -05:00
tests: add import for python-cryptography >= 43.0.0
write_pkcs12_container method raises following error message with python-cryptography-43.0.0: Error: module 'cryptography.hazmat.primitives.serialization' has no attribute 'pkcs12' Explicit import of the pkcs12 module resolves the issue.
This commit is contained in:
parent
4dd836bab1
commit
64305d6415
@ -10,6 +10,8 @@ from cryptography.hazmat.primitives import hashes
|
|||||||
from cryptography.hazmat.primitives import serialization
|
from cryptography.hazmat.primitives import serialization
|
||||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||||
|
|
||||||
|
import cryptography.hazmat.primitives.serialization.pkcs12
|
||||||
|
|
||||||
RESULT_PATH = os.getcwd()
|
RESULT_PATH = os.getcwd()
|
||||||
CERTS_PATH = os.path.join(RESULT_PATH, "./Testing/certs/")
|
CERTS_PATH = os.path.join(RESULT_PATH, "./Testing/certs/")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user