Skip to content

Conversation

@Akatuoro
Copy link
Contributor

@Akatuoro Akatuoro commented Jul 21, 2025

Behaviour should be implemented by @sap/hana-client.

This PR is to show what it takes to get it to run from a user perspective.


Enable x509 client certificates for hana connections. The order of key and certificate has to be switched so that it can be read by openssl inside @sap/hana-client.


To try it:

cds init bookshop --add tiny-sample,hana
cd bookshop
npm add @sap/hana-client

# cf login --sso
cds deploy -2 hana

# replace normal key (necessary for cds deploy) with x509 key
cf dsk -f bookshop-db bookshop-db-key --wait
cf csk bookshop-db bookshop-db-key -c '{"credential-type": "x509"}'

cds w --profile hybrid

Go to http://localhost:4004/odata/v4/catalog/Books


@Akatuoro Akatuoro changed the title Enable client certificates feat: Enable client certificates Jul 21, 2025
@johannes-vogel
Copy link
Contributor

@Akatuoro I think we can close this one since SAP/node-hdb#262 got merged?
I think the same will also be released for @sap/hana-client

@Akatuoro
Copy link
Contributor Author

@Akatuoro I think we can close this one since SAP/node-hdb#262 got merged? I think the same will also be released for @sap/hana-client

@sap/hana-client is still open, looped you in to the mail thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants