Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to export Private key from sapsslc.pse

Former Member
0 Kudos

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

2 REPLIES 2

martin_voros
Active Contributor
0 Kudos

Hi,

you search in SAP documentation and then follow the steps described there.

Cheers

Former Member
0 Kudos

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