Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sapgenpse: how to set valid period

former_member186158
Active Participant
0 Kudos

Our partner require a sha2 certificate with a 5 years valid period.

Default valid period is 22 years.

We can not find a way to set valid period with sapgenpse.

Anyone can help?

Thanks a lot.

SAP help link:

Creating the PSEs and Certificate Requests - Network and Transport Layer Security - SAP Library

1 REPLY 1

amylv
Explorer
0 Kudos

Hi Peng,

For certificate generated by sapgenpse it is self-signed certificate. According to design of SAP Cryptographic Library, there is no way to set valid period, currently the expiration time is hard coded as 1 Jan 2038 00:00:01 GMT.

If you wish to have a certificate with 5 year valid period, I would suggest you use sapgenpse to create key then generate certificate request, then send this request to CA for sign.  In this way you could get certificate for a short time period.

Hope this information could help you!

Amy