Certificate conversions etc...


https://www.xolphin.com/support/Certificate_conversions/Convert_pfx_file_to_pem_file


Convert pfx file to pem file

Conversion to a combined PEM file

To convert a PFX file to a PEM file that contains both the certificate and private key, the following command needs to be used:
# openssl pkcs12 -in filename.pfx -out cert.pem -nodes

Conversion to separate PEM files

We can extract the private key form a PFX to a PEM file with this command:
# openssl pkcs12 -in filename.pfx -nocerts -out key.pem
Exporting the certificate only:
# openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
Removing the password from the extracted private key:
# openssl rsa -in key.pem -out server.key

https://www.aleksey.com/xmlsec/xmldsig-verifier.html

https://www.cryptosys.net/sc14n/example-signed-xmldsig.html

https://github.com/robrichards/xmlseclibs

Comments

Popular posts from this blog

Flash ROM Samsung I7500 Galaxy for dummies

Copy array from round buffer with memcopy()