16

Generate a self-signed SSL certificate for SAP Fiori with GCP CA Authority servi...

 2 years ago
source link: https://blogs.sap.com/2022/02/06/generate-a-self-signed-ssl-certificate-for-sap-fiori-with-gcp-ca-authority-service/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
February 6, 2022 2 minute read

Generate a self-signed SSL certificate for SAP Fiori with GCP CA Authority service

Problem.

Every time when you open a Fiori Launchpad (Transaction – /UI2/FLP) you see a warning message “Your connection is not private”
It doesn’t look neat and may confuse some people. You want to fix this.
This simple step-by-step guide can help you.
ssl-0.png

Resolution.

Step 1. Create the CSR
Transaction – STRUST
Before starting keep in mind a small N.B
N.B. In Chrome 58, certificates that don’t have hostnames in the SubjectAltName field will result in a “Your connection is not private” error. A similar change was adopted in Firefox 48
1.1. Start t-code STRUST
1.2. Switch TRUST from display to change mode
1.3. Press the right mouse button from the context menu and select “Replace” (screen)
ssl-0a.png
1.4. Example of PSE with DNS for SubjectAltName
ssl-0b.png
CA example: DNS=vhcala4hci:localhost CN=vhcala4hci O=vhcala4hci, C=RU
1.5.  Generate CSR and export it to *.csr file
ssl-1.png
Links:
2478769 – Obtaining certificates with subject Alternative Name (SAN) within STRUST
https://launchpad.support.sap.com/#/notes/2478769
Discussion about Subject Alternative Name in STRUST
https://answers.sap.com/questions/510026/how-do-you-use-strust-to-create-a-subject-alternat.html
2970934 – How to create the CSR and how to import the certificate response for ABAP system
https://launchpad.support.sap.com/#/notes/2970934
Step 2. Request certificate by GCP Certificate Authority Service
    2.1. Sign In to a Google Cloud Platform (GCP) console
    2.2. Find a Certificate Authority Service
    2.3. Create CA pool
ssl-2.png
2.4. Create Certificate Authority in an existing pool from Step 2.3
ssl-3.png
Result:
ssl-4.png
2.5. Request a certificate
Provide CSR generated on Step 1.5
ssl-5.png
ssl-6.png
Result:
ssl-7.png
2.6. Create the certificate file
Download signed certificate.
Download CA Root certificate.
Open an empty text file.
Paste signed certificate subsequently CA Root certificate.
Save the file as  .cer file
Result:
ssl-8.png
Step 3. Import certificate response in SAP NetWeaver
Upload a file from Step 2.6 in transaction STRUST
ssl-9.png
Result:
ssl-10.png
Step 4. Import CA certificate into the web browser
Import CA certificate from Step 2.6 into the web browser on the computer when you work with Fiori Launchpad
ssl-11.png
Final result:
ssl-12.png

Conclusion.

This blog post provides step by step guide on how to generate a self-signed SSL certificate for SAP Fiori with GCP CA Authority service provided.
The example is provided with SAP ABAP Platform 1909, Developer Edition but you can easily adapt this guide for your case.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK