Hi,
I was able to issue a Let’s Encrypt certificate for use on my test SAP Mobile Platform server. The issuance process and install went well. SMP is based on Tomcat, so I converted the .pem files to a .p12 and I’m able to connect to the administrative screens and web apps from a browser (Safari or Chrome) using SSL without any problems.
However, I get an SSL error when trying to use it on the iOS Simulator to connect to the server. Details of the error are below. Most perplexing is that I can connect to SSL pages on SMP from the Simulator using the mobile Safari browser and it works fine. I have tried installing the Let’s Encrypt .cer on the Simulator and it doesn’t make a difference.
Any ideas on getting Cordova to work with a Let’s Encrypt certificate?
Thanks.
Rob
Jan 16 10:17:34 Roberts-MacBook-Pro LogonDemo[47013]: SMP_AUTH_PROXY ERROR connection:didFailWithError:, Error Domain=NSURLErrorDomain Code=-1200 “An SSL error has occurred and a secure connection to the server cannot be made.” UserInfo={NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSUnderlyingError=0x7914c050 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 “An SSL error has occurred and a secure connection to the server cannot be made.” UserInfo={NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., _kCFNetworkCFStreamSSLErrorOriginalValue=-9802, _kCFStreamPropertySSLClientCertificateState=0, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9802, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x78e9bc90>, _kCFStreamErrorDomainKey=3, kCFStreamPropertySSLPeerCertificates=<CFArray 0x78fbecc0 [0xb73098]>{type = immutable, count = 1, values = (
0 : <cert(0x78e9e9a0) s: centos02.internal.l10systems.com i: Let’s Encrypt Authority X1>
)}, NSErrorFailingURLStringKey=https://centos02.internal.l10systems.com:8081/odata/applications/latest/com.mycompany.logon/Connections, NSErrorFailingURLKey=https://centos02.internal.l10systems.com:8081/odata/applications/latest/com.mycompany.logon/Connections}}, _kCFStreamErrorCodeKey=-9802, NSErrorFailingURLStringKey=https://centos02.internal.l10systems.com:8081/odata/applications/latest/com.mycompany.logon/Connections, NSErrorPeerCertificateChainKey=<CFArray 0x78fbecc0 [0xb73098]>{type = immutable, count = 1, values = (
0 : <cert(0x78e9e9a0) s: centos02.internal.l10systems.com i: Let’s Encrypt Authority X1>
)}, NSErrorClientCertificateStateKey=0, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x78e9bc90>, NSErrorFailingURLKey=https://centos02.internal.l10systems.com:8081/odata/applications/latest/com.mycompany.logon/Connections}