06-20-2012 11:17 PM
I have a client pse and I want to export the private key of this pse on my abap instance. How do I do that?
Kedar
06-21-2012 12:34 AM
Hi,
you search in SAP documentation and then follow the steps described there.
Cheers
11-23-2012 11:43 AM
Hi,
You can export the private key from your pse following this procedure:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3d/5d3ffd5ae248ffa15f7bf9ee659f41/content.htm
An example:
sapgenpse export_p12 -p SAPSSLC.pse -z password SID_priv.p12
Besides you could extract the private key with openssl:
1) Extract the RSA key from the P12 file. -nodes indicates you don't want password for the private key, -nocerts indicates you don't want to output the certificates. -in indicates the .p12 file.
# openssl pkcs12 -nodes -nocerts -in SID_priv.p12
Enter Import Password: password
MAC verified OK
Bag Attributes
localKeyID: 01 00 00 00
friendlyName: SAPSSLC
Key Attributes: <No Attributes>
2) Copy the text between BEGIN PRIVATE KEY and END PRIVATE KEY to a file and save it as .pem (-----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- must be included)
MAC verified OK
Bag Attributes
localKeyID: 01 00 00 00
friendlyName: SAPSSLC
Key Attributes: <No Attributes>
-----BEGIN PRIVATE KEY-----
MiiCeAIBADANBgkqhkiG9w0BAQEFAASCAAIwggJeAgEAAoGBAP/A/bQhzQRof/UW
[...]
+AjRxlaHW1UEIgho
-----END PRIVATE KEY-----
Thanks Antonio Huete.(http://scn.sap.com/people/antonio.huetejimenez) for this openssl tip.
Regards
Jose Luis Valverde