In our PCF lab instance, I installed config server from market place and trying with sample cook app and making it to connect to config server. I didn't set any env variable and only thing I set is git uri as below.
"git": {
"password": "****",
"searchPaths": "*.*",
"cloneOnStart": "true",
"label": "master",
"skipSslValidation": "true",
"uri": "https://git-cd.isus.com/ctm/config-files.git",
"username": "muthu_annamalai"
}
I tested the git with local config server and it fetches fine. But in lab environment I am getting below exception.
2018-05-01 17:46:33.548 ERROR 14 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://config-e778f757-09a4-4a2c-9183-3961ee573f0a.pcfapps.saas.local/cook/cloud/master/dessert.json": java.security.cert.CertificateException: No subject alternative DNS name matching config-e778f757-09a4-4a2c-9183-3961ee573f0a.pcfapps.saas.local found.; nested exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching config-e778f757-09a4-4a2c-9183-3961ee573f0a.pcfapps.saas.local found.] with root cause java.security.cert.CertificateException: No subject alternative DNS name matching config-e778f757-09a4-4a2c-9183-3961ee573f0a.pcfapps.saas.local found.