Skip to content

How to Renew SAProuter Certificate (Step-by-Step Guide 2026)

September 15, 2022
SAProuter-certificate

Learn how to renew SAProuter certificate with step-by-step commands, screenshots, and verification steps. Easy guide for beginners.

SAProuter certificate renewal is required to maintain secure communication between SAP systems and external networks. In this guide, you will learn how to renew the SAProuter certificate step by step using simple commands and real examples.

SAProuter Certificate Renewal Steps:

1. Backup existing local.pse and certreq
2. Generate CSR using sapgenpse
3. Submit CSR on SAP portal
4. Download certificate (srcert)
5. Import certificate using sapgenpse
6. Run seclogin command
7. Restart SAProuter

What is SAP Router Certificate?

SAProuter is a secure communication tool that acts as an intermediary between SAP systems and external networks. It controls access and ensures encrypted communication using certificates.

When Do You Need to Renew SAProuter Certificate?

  • Certificate expiration warning
  • SAProuter connection issues
  • Security compliance requirements

Prerequisites

  • SAProuter installed
  • Access to OS level (Linux/Windows)
  • SAP Cryptographic Library (SAPCRYPTOLIB)

Step 1: Check Current Certificate Validity

sapgenpse get_my_name -n validity

This command checks the validity of the current SAProuter certificate.
saprouter certificate renewal command sapgenpse
You can check in the above image that the certificate expired on 20-Dec-2023.
saprouter certificate renewal command sapgenpse

Before deleting or renaming any files, make sure to take a backup of the following: cred_v2, local.pse, srcert, and certreq.

Step 2: Copy the Distinguished Name (Parameter for sapgenpse) from SAP Portal

Login to the SAP Support Portal → Tools → Connectivity Tools → SAProuter.

saprouter certificate renewal command sapgenpse
saprouter certificate renewal command sapgenpse
saprouter certificate renewal command sapgenpse
Click on Apply for a SAProuter Certificate.
saprouter certificate renewal command sapgenpse
saprouter certificate renewal command sapgenpse
Copy the Distinguished Name from the image shown above.

Step 3: Create Certificate Request

If certreq and local.pse file exist then delete or rename the both file before running below command

sapgenpse get_pse -v -r certreq -p local.pse
This command generates a certificate request file (certreq) which will be uploaded to SAP Support Portal.
saprouter certificate renewal command sapgenpse

Enter and confirm the PSE PIN, paste the Distinguished Name copied from Step 2, and the system generates the certreq certificate request file.

saprouter certificate renewal command sapgenpse

Verify that the “certreq1” file has been created successfully.

saprouter certificate renewal command sapgenpse
Open the certreq file in Notepad and copy all its contents.

Step 4: Submit Request to SAP

Upload the generated certificate request file to the SAP Support Portal and request a new SAProuter certificate.

saprouter certificate renewal command sapgenpse
Click On Submit CSR
saprouter certificate renewal command sapgenpse
Paste the contents of the “certreq” file into the SAP Portal text box and click “Request Certificate.”
saprouter certificate renewal command sapgenpse
Copy all the content from the Certificate Response.
saprouter certificate renewal command sapgenpse
Paste the copied contents into Notepad and save it as “srcert” in the SAProuter folder.

Note: Before doing this, rename the existing srcert file.

saprouter certificate renewal command sapgenpse
saprouter certificate renewal command sapgenpse
Remove the .txt extension from the file and save it without any extension.
saprouter certificate renewal command sapgenpse
The file has now been saved without the .txt extension.

Step 5: Import New Certificate

sapgenpse import_own_cert -c srcert -p local.pse

This command imports the new certificate into your SAProuter.
saprouter certificate renewal command sapgenpse

Step 6: Create the “cred_v2” file

Execute the following command using the PIN created earlier (Step 3):
sapgenpse seclogin -p local.pse

Step 7: Restart SAProuter Service

On Windows/Windows Server, go to Services, locate the SAProuter service, and restart it.

saprouter certificate renewal command sapgenpse
For Linux OS: 
saprouter -r

Restart the SAProuter service to apply the new certificate.

Step 8: Verify Certificate Renewal

sapgenpse get_my_name -v -n validity

Ensure the new certificate validity dates are updated.
saprouter certificate renewal command sapgenpse
Here you can see that the certificate has been renewed successfully.
sapgenpse get_my_name -v -n Issuer
sapgenpse get_my_name

Common Errors and Troubleshooting

  • Invalid PSE PIN: Ensure correct PIN is used
  • Certificate not imported: Verify file path
  • SAProuter not starting: Check logs and permissions

Conclusion

Renewing the SAProuter certificate is essential for maintaining secure SAP communication. By following the above steps, you can easily generate, request, and install a new certificate without downtime.

Frequently Asked Questions (FAQ)

❓ What is SAProuter certificate validity?

The SAProuter certificate is typically valid for a limited period (usually 1–2 years). After expiry, SAProuter connectivity may stop working, so timely renewal is required.

❓ How to check SAProuter certificate expiry?
  • You can check the certificate expiry by:
  • Or checking from the SAP Support Portal
  • Opening the SAProuter certificate file (srcert)
  • Or using SAP tools like sapgenpse
❓ What happens if the certificate expires?
  • SAP connectivity will fail ❌
  • Remote support from SAP will stop
  • You may face system communication issues

👉 So always renew the certificate before expiry to avoid downtime.