You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/osvaldo/odoos/odoo13/extra-addons_tmp/cliente_oneclick/clientes/apple_EDI_AS2_reports/models/models.py", line 62, in send_to_apple
my_org = Organization(
File "", line 11, in init
File "/usr/local/lib/python3.8/dist-packages/pyas2lib/as2.py", line 96, in post_init
self.sign_key = self.load_key(self.sign_key, self.sign_key_pass)
File "/usr/local/lib/python3.8/dist-packages/pyas2lib/as2.py", line 107, in load_key
key, cert, _ = asymmetric.load_pkcs12(key_str, key_pass)
File "/usr/local/lib/python3.8/dist-packages/oscrypto/_openssl/asymmetric.py", line 811, in load_pkcs12
with open(source, 'rb') as f:
FileNotFoundError: [Errno 2] the file or drectory does nott exist: '-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYm
The text was updated successfully, but these errors were encountered:
It seems that you passed a string object which it seems in oscrypto will be used to open files. When using bytes, it will use bytes... (at least that is what I can see from the source code).
there is a bug in how the asymmetric loads the certificate, it s expecting a file not a bytes stream,
File "/home/osvaldo/odoos/odoo13/extra-addons_tmp/cliente_oneclick/clientes/apple_EDI_AS2_reports/models/models.py", line 62, in send_to_apple
my_org = Organization(
File "", line 11, in init
File "/usr/local/lib/python3.8/dist-packages/pyas2lib/as2.py", line 96, in post_init
self.sign_key = self.load_key(self.sign_key, self.sign_key_pass)
File "/usr/local/lib/python3.8/dist-packages/pyas2lib/as2.py", line 107, in load_key
key, cert, _ = asymmetric.load_pkcs12(key_str, key_pass)
File "/usr/local/lib/python3.8/dist-packages/oscrypto/_openssl/asymmetric.py", line 811, in load_pkcs12
with open(source, 'rb') as f:
FileNotFoundError: [Errno 2] the file or drectory does nott exist: '-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYm
The text was updated successfully, but these errors were encountered: