X509 certificate based authentication #1129
-
|
Hello All, I am trying to authenticate using the X509 certificate and as per the documentation https://registry.terraform.io/providers/SAP/btp/latest/docs I believe the self signed certificate as an issue. Could someone confirm how can we get through this? Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
We are looking into this and we'll get back |
Beta Was this translation helpful? Give feedback.
-
|
Hi @gaurav-sap , As stated in the documentation, the validity of the certificate is determined by the SAP Cloud Identity Services. The documentation states there is no support for Certificates used must either be from the default list of Trusted CAs (as mentioned in the documentation) or a ticket must be raised in the SAP Support Portal (Component:- |
Beta Was this translation helpful? Give feedback.
-
|
Hi @vipinvkmenon , I was able to sign the certificate with the "SAP Cloud Root CA", though I have the same error. |
Beta Was this translation helpful? Give feedback.
-
|
Following are the steps to login to SAP BTP from the Terraform (using SAP BTP Terraform Provider) using X509 certificates from SAP Cloud Identity Services. Configure Trust between SAP BTP and SAP Cloud Identity Services
You should see the name of the configured IDP in the Assign necessary role collections
Obtain the Certificate
Convert Certificate to PEMThe Terraform provider needs the certificates to be in PEM format
openssl pkcs12 -in <downloaded-p12-certificate>.p12 -clcerts -nokeys -out <certificate-for-terraform>.pem
openssl pkcs12 -in <downloaded-p12-certificate>.p12 -nocerts -nodes -out <certificate-key-for-terraform>.pemConfigure the ProviderThe provider can now use the certificates form accessing and working on BTP. A sample configuration is as follows:- provider "btp" {
globalaccount = "<Global Account Subdomain>"
idp = "<Origin Key>" # The origin key as mentioned in step above
username = "<Username>"
tls_client_certificate = file("<certificate-for-terraform>.pem")
tls_client_key = file("<certificate-key-for-terraform>.pem")
tls_idp_url = "https://<tenant>.accounts.ondemand.com" # URL of the SAP IAS Tenant
}Notes
|
Beta Was this translation helpful? Give feedback.


Following are the steps to login to SAP BTP from the Terraform (using SAP BTP Terraform Provider) using X509 certificates from SAP Cloud Identity Services.
Configure Trust between SAP BTP and SAP Cloud Identity Services
You should see the name of the configured IDP in the
Trust Configuration. Take a note of the name of the Custom IDP (Platform Users) underOrigin Key, this is theidpvalue used when initialising t…