IT/SAP

To download the SAP Notes in wget

SAP_BASIS 2020. 12. 10. 15:29

Preparation

 - Obtaining the SAP Passport

 

Convert the certificate from the PKCS#12 format to PEM

 

Export Client Certificate

openssl pkcs12 -in <SID>.pfx -clcerts -nokeys -out CLIENT_CERT.PEM

 

Export Client Certificate Key

openssl pkcs12 -in <SID>.pfx -nocerts -nodes -out CLIENT_CERT_KEY.PEM

 

Export CA Certificate

openssl pkcs12 -in <SID>.pfx -cacerts -nokeys -out CA_CERT.PEM

 

 

Download of SAP Note Command in wget

wget --certificate=CLIENT_CERT.PEM --private-key=CLIENT_CERT_KEY.PEM --ca-certificate=CA_CERT.PEM -O <FILENAME>.SAR 'https://apps.support.sap.com/sap/support/lp/notes/hcp/down4snote/down4snote.htm?iv_num=<Notes Nr.>&sap-language=EN'