Skip to content

Commit bceefcd

Browse files
authored
Merge pull request #188 from SAP-samples/docs/s4hana-destination-certificates
docs(s4hana): add BTP destination certificate check and renewal guidance
2 parents 0baa155 + c640dde commit bceefcd

1 file changed

Lines changed: 57 additions & 1 deletion

File tree

misc/s4hana/README.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
4. You are subscribed to SAP Business Application Studio. For more information, see [Subscribe to Business Application Studio](https://help.sap.com/docs/SAP%20Business%20Application%20Studio/9d1db9835307451daa8c930fbd9ab264/6331319fd9ea4f0ea5331e21df329539.html).
1111
5. You have reviewed [SAP S/4HANA Cloud, Public Edition FAQ](https://me.sap.com/notes/3445942).
1212
6. You have reviewed the [SAP Business Application Studio Integration with SAP S/4HANA Cloud](https://me.sap.com/notes/3297481) documentation.
13+
7. You have verified that the SAP BTP destination certificates are valid and have not expired. For more information, see [Use Destination Certificates](https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/use-destination-certificates).
1314

1415
## Create an SAP BTP `SAMLAssertion` Destination to Consume OData V2 and OData V4 Catalogs
1516

@@ -182,9 +183,11 @@ For an HTTP 403 error, you can check the `Display Connectivity Trace` as an SAP
182183

183184
- Your SAP BTP destination, defined in your `SAP BTP subaccount`, is not configured with `SAMLAssertion`. Deployment is only supported using `SAMLAssertion`. A destination created with any other authentication type fails.
184185
- The user logged into SAP Business Application Studio does not have the required `Business Role` assigned to allow the user to deploy the application. The user must have the `SAP_CORE_BC_EXT_UI` or `SAP_A4_BC_DEV_UID_PC` role assigned to allow the user to deploy the application.
185-
- SAP BTP trust certificate renewal can cause connectivity issues. The active SAP BTP trust certificate is renewed and published with a new `Validity` date range. When this occurs, the renewed certificate must be uploaded to the target SAP S/4HANA Cloud system to restore trust and allow successful deployment or connectivity.
186+
- SAP BTP trust certificate renewal can cause connectivity issues. The active SAP BTP trust certificate is renewed and published with a new `Validity` date range. When this occurs, the renewed certificate must be uploaded to the target SAP S/4HANA Cloud system to restore trust and allow successful deployment or connectivity. For information about how to check certificate expiry and upload renewed certificates, see [Checking and Renewing SAP BTP Destination Certificates](#checking-and-renewing-sap-btp-destination-certificates).
186187
- Ensure that the email address in your Identity Provider (IdP) matches the SAP OCID (user ID) in your SAP S/4HANA Cloud system exactly. The email addresses are case-sensitive and must match precisely.
187188

189+
For more information about troubleshooting SAMLAssertion configuration, see [Troubleshooting SAML Assertion in Destination Configuration with S/4HANA Cloud System](https://me.sap.com/notes/3679283/E).
190+
188191
### Deployment Fails with HTTP 400
189192

190193
```bash
@@ -247,6 +250,58 @@ For more information, see [Exposing an OData Service from SAP S/4HANA Cloud Publ
247250
2. If the `nameIdFormat` in your SAP BTP destination is set to `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`, ensure the email address in your Identity Provider (IdP) matches the email address configured for your user in your S4HC instance.
248251
3. After running a `curl` command or [Environment Check](../destinations/README.md#environment-check), all requests fail with HTTP 500 and do not reach your SAP S/4HANA Cloud instance. Your SAP BTP destination may be corrupted. Clone the existing destination and use the new destination in your SAP Business Application Studio instance.
249252

253+
## Checking and Renewing SAP BTP Destination Certificates
254+
255+
SAP BTP periodically renews the trust certificate it uses to establish federation with SAP S/4HANA Cloud. When the certificate is renewed, the new certificate must be uploaded to the SAP S/4HANA Cloud Communication System before the old one expires. Failure to do so results in HTTP 403 errors during deployment or service catalog calls.
256+
257+
For background information, see [Use Destination Certificates](https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/use-destination-certificates) in the SAP BTP Connectivity documentation.
258+
259+
### Check the Current Certificate Validity
260+
261+
1. Open the SAP BTP cockpit and navigate to your subaccount.
262+
2. Go to **Connectivity** > **Destinations**.
263+
3. Select the destination used to connect to your SAP S/4HANA Cloud system.
264+
4. In the destination editor, scroll to the **Certificates** section. The listed certificate shows its **Validity** date range. If the certificate is expired or close to expiry, it must be replaced.
265+
266+
### Download the Renewed Certificate from SAP BTP
267+
268+
1. In the SAP BTP cockpit, go to **Security** > **Trust Configuration**.
269+
2. Under **Local Service Provider**, select your trust configuration.
270+
3. Click **Get Metadata** or export the signing certificate in `.cer` or `.pem` format.
271+
4. Note the **Valid Until** date shown for the certificate.
272+
273+
### Upload the Renewed Certificate to SAP S/4HANA Cloud
274+
275+
1. Log on to your SAP S/4HANA Cloud system as an administrator.
276+
2. Search for the **Communication Systems** application.
277+
3. Open the Communication System configured for SAP Business Application Studio or your SAP BTP subaccount.
278+
4. In the **Inbound Only** section, locate the existing SSL certificate.
279+
5. Delete the expired certificate entry.
280+
6. Click **Add** and upload the renewed `.cer` or `.pem` file downloaded from SAP BTP.
281+
7. Save the Communication System.
282+
283+
After the certificate is uploaded, re-test connectivity using the [Environment Check](../destinations/README.md#environment-check) tool or by running a `curl` command against the OData catalog endpoint. For example:
284+
285+
```bash
286+
# OData V2 catalog
287+
/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/ServiceCollection
288+
289+
# OData V4 catalog
290+
/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0002/ServiceGroups?$expand=DefaultSystem($expand=Services)
291+
```
292+
293+
### SAP Cloud Connector: System Certificate
294+
295+
If your setup uses the SAP Cloud Connector (on-premise proxy), the Cloud Connector system certificate is separate from the SAP BTP trust certificate and must be renewed independently.
296+
297+
1. Open the SAP Cloud Connector Administration UI.
298+
2. Go to **Configuration** > **ON PREMISE** > **System Certificate**.
299+
3. Review the **Valid Until** date.
300+
4. If expired or close to expiry, click **Renew** and follow the prompts to generate a new certificate signing request (CSR) or self-signed certificate.
301+
5. After renewing, re-exchange the certificate with your SAP BTP subaccount. Go to your SAP BTP cockpit, navigate to **Connectivity** > **Cloud Connectors**, and confirm the new certificate fingerprint matches.
302+
303+
For more information, see [Use Destination Certificates](https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/use-destination-certificates) and [Renew a Certificate](https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/renew-certificate) in the SAP BTP Connectivity documentation.
304+
250305
## SAP Fiori Launchpad
251306

252307
Since application availability in the SAP Fiori launchpad and its authorization are controlled through Business Catalogs, extend an existing catalog to include your newly created app.
@@ -260,6 +315,7 @@ When using SAP Fiori tools, see step 8 of the [Configure SAP Fiori launchpad set
260315
## Related Links
261316

262317
- [Integrating SAP Business Application Studio](https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/22bc724fd51a4aa4a4d1c5854db7e026.html)
318+
- [Troubleshooting SAML Assertion in Destination Configuration with S/4HANA Cloud System](https://me.sap.com/notes/3679283/E)
263319
- [Develop a Custom UI for an SAP S/4HANA Cloud System](https://developers.sap.com/tutorials/abap-custom-ui-bas-develop-s4hc.html)
264320
- [Create an SAP Fiori App and Deploy it to SAP S/4HANA Cloud, ABAP Environment](https://developers.sap.com/tutorials/abap-s4hanacloud-procurement-purchasereq-shop-ui.html)
265321
- [Set Up Trust Between SAP Cloud Identity Services and SAP BTP, Cloud Foundry Environment](https://developers.sap.com/tutorials/abap-custom-ui-trust-cf.html)

0 commit comments

Comments
 (0)