Skip to Content
author's profile photo Former Member
Former Member

How to export Private key from sapsslc.pse

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 20, 2012 at 11:34 PM

    Hi,

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

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2012 at 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.