Skip to content

Commit 57126c5

Browse files
committed
Fix bad signature w/ latest cryptography version
AFIP government webservice error: ``` pysimplesoap.client.SoapFault: ns1:cms.sign.invalid: Firma inválida o algoritmo no soportado ``` Signed-off-by: Mariano Reingart <[email protected]>
1 parent 0a5992b commit 57126c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsaa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def sign_tra(tra, cert=CERT, privatekey=PRIVATEKEY, passphrase=""):
145145
).add_signer(
146146
cert, private_key, hashes.SHA256()
147147
).sign(
148-
serialization.Encoding.SMIME, [pkcs7.PKCS7Options.DetachedSignature]
148+
serialization.Encoding.SMIME, [pkcs7.PKCS7Options.Binary]
149149
)
150150

151151
# Generar p7 en formato mail y recortar headers

0 commit comments

Comments
 (0)