From: Gabriela M. <gab...@gm...> - 2016-10-13 08:55:38
|
Hello, i have a problem, dont know how to resolve it. Please for help. I trying for implementation bank payment system. They are using SHA2 sign and asymetric RSA encoding/decoding in standard PKCS#1 for communitation. They gived to me php script, but my system is in perl. I using Crypt:OpenSSL:RSA. Fast info about steps: 1. signing XML data with my private key 2. crypt this signed data with public key of bank 3. send to bank, bank 4. bank send me other signed, crypted XML message 5. I need to decrypt message with my private key - i'll have signed message 6. verify signature and get xml data using public key from bank And i have problem with step 6 - how i can get original data from signed message, and then verify signature?? In php script they using "openssl_pkcs7_verify" function, but i dont know how i can do it in perl. please help, ill be happy for any advice. Gabriela Mackova |