SAP Knowledge Base Article - Preview

3322277 - JSON of BTP Generated Certificate in Service Key contains "\n" characters

Symptom

  • You have created a Service Key in your Service Instance using the option 'Certificate' to generate a new PEM-encoded certificate chain for authentication
  • When you check the contents of the certificate, the JSON format shows that the certificate contains "\n" characters which are not displayed in the FORM format, eg - 

    -----BEGIN CERTIFICATE-----\nMIIFwjCCA6qgAwIBAgIRANa2u7NquQ8Cvn6mOsnuBdQwDQYJKoZIhvcNAQELBQAw\ngYAxCzAJBgNVBAYTAkRFMRQwEgYDVQQHDAtFVTEwLUNhbmFyeTEPMA0GA1UECgwG\nU0FQIFNFMSMwIQYDVQQLDBpTQVAgQ2xvdWQgUGxhdGZvcm0gQ2xpZW50czElMCMG\nA1UEAwwcU0FQIENsb3VkIFBsYXRmb3JtIENsaWVudCBDQTAeFw0yMzA0MTEwOTM4\nMTBaFw0yNDA0MTAxMDM4MTBaMIGnMQswCQYDVQQGEwJERTEPMA0GA1UEChMGU0FQ\nIFNFMSMwIQYDVQQLExpTQVAgQ2xvdWQgUGxhdGZvcm0gQ2xpZW50czEPMA0GA1UE..................................\nLvHPhNDM3rMsLu06agF4JTbO8ANYtWQTx0PVrZKJu+8fcIaUp7MVBIVZ\n-----END CERTIFICATE-----\n


Read more...

Environment

  • SAP Cloud Integration
  • SAP Integration Suite
  • SAP Business Technology Platform

Product

Cloud Integration all versions ; SAP Integration Suite all versions

Keywords

CPI, SCPI, HCI, Cloud Integration, Service Instance, Service Key, certificate, x509, BTP, generate, /n, client certificate, authentication, JSON, line break  , KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.