SDI Certificates
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 (test)
cp /dir/file.xml . (edit and change CodiceDestinatario) openssl smime -sign -in file.xml -outform der -binary -nodetach -out file.xml.p7m -signer firma.pem (enter password created before) 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/ chown sogei:sogei /dir/DatiVersoSdITest/file.xml.p7m.enc
Test codes
PA
- FTPTGU;
- FTPKEP;
- FTPVGY.
B2B
- FTPGGSL;
- FTPGXYI;
- FTPURGT.