on ‎2023 Aug 04 6:40 AM
I am creating Oauth 2 client in SAP Successfactors using "Manage Oauth2 Client" option. I got a X.509 certificate which has a private key within it and a certificate. How should I extract the public key pem file from this? I am using openssl command like below for extracting but getting an error:
Command:
openssl x509 -pubkey -noout -in cert.pem > pubkey.pem
Error:
Could not read certificate from Certificate.pem
4C410000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:crypto\store\store_result.c:151:
4C410000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:crypto\store\store_result.c:151:
The private and public key pem files are required for me to get the SAML Assertion using the sf-oauth(https://www.npmjs.com/package/sf-oauth#generate-via-cli) npm utility.
Request clarification before answering.
Hello,
I haven't had this error before, but maybe the command should be rather
openssl pkey -pubout -in privkey.pem -out pubkey.pem?
Is it possible to read the content with:
openssl x509 -text -in cert.pem?
Or try using a different version of openssl?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.