Difference between revisions of "SDI Certificates"
Jump to navigation
Jump to search
(→B2B) |
|||
Line 29: | Line 29: | ||
= Sign and crypt a file = | = Sign and crypt a file = | ||
− | + | cp /dir/file.xml . | |
+ | |||
+ | openssl smime -sign -in file.xml -outform der -binary -nodetach -out file.xml.p7m -signer firma.pem | ||
+ | |||
+ | openssl smime -encrypt -in file.xml.p7m -outform der -binary -aes256 -out file.xml.p7m.enc sogeiunicocifra.pem | ||
+ | |||
+ | rm file.xml | ||
+ | |||
+ | rm file.xml.p7m | ||
+ | |||
+ | mv file.xml.p7m.enc /dir/DatiVersoSdITest/ | ||
= Test codes = | = Test codes = |
Revision as of 21:43, 9 April 2024
Contents
Files supplied by SDI
- PHXAT002.FRRFBA78L29B819H.cifra.p12;
- PHXAT002.FRRFBA78L29B819H.firma.p12;
- CAEntrate.pem;
- sogeiunicocifra.pem;
- Sogei_SdI1.pub;
- Sogei_SdI2.pub.
The first 2 files are protected by a password.
Extracting certificates and keys
openssl pkcs12 -in PHXAT002.FRRFBA78L29B819H.firma.p12 -out firma.pem -legacy (enter supplied password) (enter new password, 2 times) openssl pkcs12 -in PHXAT002.FRRFBA78L29B819H.cifra.p12 -out cifra.pem -legacy (enter supplied password) (enter new password, 2 times)
This operation needs to be done only 1 time.
Sign and crypt a file
cp /dir/file.xml . openssl smime -sign -in file.xml -outform der -binary -nodetach -out file.xml.p7m -signer firma.pem openssl smime -encrypt -in file.xml.p7m -outform der -binary -aes256 -out file.xml.p7m.enc sogeiunicocifra.pem rm file.xml rm file.xml.p7m mv file.xml.p7m.enc /dir/DatiVersoSdITest/
Test codes
PA
- FTPTGU;
- FTPKEP;
- FTPVGY.
B2B
- FTPGGSL;
- FTPGXYI;
- FTPURGT.