Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Peer's certificate issuer has been marked as not trusted by the user" in Openshift3

If S2I - "Source-to-image" resource in Openshift3 tries to connect to a TLS Gitlab repository shows the following message: "Peer's certificate issuer has been marked as not trusted by the user".

How can I instruct Openshift3 which certificates authorities are able to use there? Is there any config/option to bypass this error?

The command entered was:

oc new-app tomcat~https://gitlab.xxx/test/test.git --name=test --strategy=docker
like image 473
Carlos Alberto Avatar asked Jul 04 '17 21:07

Carlos Alberto


1 Answers

For security reasons, you should add a trusted CA source secret to the BuildConfig. To answer your question, you can disable TLS verification by setting an environment variable GIT_SSL_NO_VERIFY to false in the BuildConfig. Checks the docs here for more info.

To pass this directly to the oc new-app command run oc new-app --build-env GIT_SSL_NO_VERIFY=false

like image 94
PhilipGough Avatar answered Oct 02 '22 02:10

PhilipGough