SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Reconfigure Trust Relationships on SAP HANA XS Systems

Reconfigure a SAML trust relationship on your SAP HANA XS database system from the file system to the in-memory store.

Overview

🎓 intermediate 60 min. SAP HANA Service For SAP BTPIntermediateSAP Business Technology Platform

You will learn

  • โœ”How to register the service provider and the identity provider certificates in the SAP HANA in-memory store
  • โœ”How to reconfigure the trust relationship between your identity provider and your SAP HANA database system
Unknown U Unknown March 8, 2024
Created by March 5, 2024
Contributors

Prerequisites

Prerequisites

  • You have installed an SAP HANA XS system in the SAP BTP, Neo environment that you’d like to convert to an SAP HANA MDC system. For more information, see SAP Note 2960608.
  • You have configured a trust relationship between your identity provider and your SAP HANA XS system using SAML on the file system.
  • You have access to your identity provider and the required roles to configure SAML trust relationships.
  • You have installed openSSL or another certification tool.

Steps

Intro

This tutorial assumes that you want to convert your SAP HANA XS system to an MDC system and, therefore, want to reconfigure your SAML setup to prepare for the conversion. For more information, see SAP Note 2960608.

It also assumes that you have already configured a trust relationship between your SAP HANA database system and your identity provider. If you do not use SAML-based authentication, you can ignore this tutorial.

When you configured the SAML trust relationship, the setup consisted of the following steps:

Initial setup
Initial setup

  1. The service provider certificates were automatically created during the installation of the SAP HANA database and stored in the file system (in the sapsrv.pse file).

    TIP: The public certificate stored in the file system can be viewed in the Trust Manager tab of the XS Admin Tool.

  2. You configured a trust relationship to the SAP HANA system to an identity provider by exporting the service metadata and registering it in the identity provider.

  3. You configured a trust relationship to the identity provider in the SAP HANA system, by exporting the identity provider SAML metadata and importing it into the SAP HANA system.

  4. You configured the application for SAML authentication.

Converting your SAP HANA XS system to an SAP HANA MDC system now requires you to reconfigure the SAML trust relationship to store the certificates in the in-memory store. To do so, you will have to repeat some of the already completed steps:

New setup
New setup

  1. You will regenerate the service provider certificates (step 2).

  2. You store the service provider and the identity provider certificates in the in-memory store of the SAP HANA system (steps 3-6).

  3. You will reconfigure the trust relationship in the identity provider based on the updated service provider certificates (step 7).

But before we start, we have to make sure that your database user has been assigned the required roles.


Step 1 Check or assign required roles
โ€”

  1. Open the SAP HANA Web-based Development Workbench on the SAP HANA XS system.

    You can do so by appending /sap/hana/ide to the URL of the database system, or you can access it from the SAP BTP cockpit.

    Accessing the Web-based Development Workbench
    Accessing the Web-based Development Workbench

  2. Go to Security and open your database user.

  3. Check that the user has been assigned at least the following roles:

    • sap.hana.security.base.roles::HANACertificateAdmin
    • sap.hana.security.cockpit.roles::DisplayCertificateStore
    • sap.hana.security.cockpit.roles::EditCertificateStore
    • sap.hana.security.cockpit.roles::MaintainCertificateCollections
    • sap.hana.security.cockpit.roles::MaintainCertificates
    • sap.hana.xs.admin.roles::SAMLAdministrator
    • sap.hana.xs.admin.roles::TrustStoreAdministrator

    For more information on how to create database user and assign roles on SAP HANA XS database systems, see Create a Database Administration User for SAP HANA XS Databases.

Step 2 Re-create service provider certificates
+
Step 3 Create certificate collection
+
Step 4 Upload service provider certificates
+
Step 5 Download SAML identity provider certificate
+
Step 6 Upload SAML identity provider certificate
+
Step 7 Make your identity provider trust your SAP HANA system
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Check or assign required roles 2. Re-create service provider certificates 3. Create certificate collection 4. Upload service provider certificates 5. Download SAML identity provider certificate 6. Upload SAML identity provider certificate 7. Make your identity provider trust your SAP HANA system

Learn more →