Closed mreinigjr closed 9 years ago
Hi,
Let me explain a bit about signing messages, when we send signed messages we use our private key to sign it and the receiver will use our public key to verify the signature.
So in this when you are sending a message to Mendelson AS2 you will be deailing with your private and public keys.
I suggest that you use http://portecle.sourceforge.net/ to generate your key pair.
Once the key pair has been generated in portecle, just right-click and export first the "Head Certificate" which is your public key and then the "Private Key" as a PEM encoded key and enter the password.
Now create a private certificate in pyas2 and assign it to the organization, next add the public key to the certificate manager in Mendelson and then select this certificate in the assosiated partner profile.
Now you are ready to sign messages sent to Mendelson AS2.
Hi,
Using Portecle solved the problem! I didn't realize that the private key needed to have both the key and cert in the .pem
file. Thank you very much! I am now having a new issue with MDN and with the hash algorithm declaration to the partner. I will post 2 new issues.
I am fairly new to the AS2 game, and your software has been the first I have been able to get up and running. However, I am having the below issues that I would very much appreciate your help with.
When testing with Mendelson's test server (Here is info regarding the test server: http://as2.mendelson-e-c.com/), I keep receiving the following openssl error:
I have extracted the sender key and certificate provided by mendelson (key1.pfx) using:
certificate:
openssl pkcs12 -in key1.pfx -nokeys -out cert.pem
key (used -des3 to maintain password on key):
openssl pkcs12 -in key1.pfx -nocerts -out key.pem -nodes -des3
If I don't sign the AS2 test message, then the message is sent. However, no data is sent with message and the server outputs:
This may be because the mendelson test server requires messages to be signed, but from the my server's output, it seems that the uploaded test file is not being retrieved when pyas2 is sending the message. Checking the
tmp
folder, I am able to see all of the files I have uploaded.So right now I am able to send an unsigned encrypted message to Mendelson's test server, but with no data. Again, I am not able to send a signed message because of the certificate issues above.
I am using:
Thank you for any input you may be able to provide and thank you for the software. :)