origin: Cannot fetch from a self-signed HTTPS git repository
Version
oc v1.1.3-553-g19dbf2a kubernetes v1.2.0-alpha.7-703-gbc4550d
Description
it is impossible to create a service (e.g. PHP 5.6) with a HTTPS-based self-signed git repository.
Steps To Reproduce
- Create a service, such as PHP 5.6
- Use a HTTPS with self-signed certificate as git source
Current Result
Build failed with
F0314 04:14:47.738178 1 builder.go:204] Error: build error: fatal: unable to access 'https://example.com/test.git': Peer's Certificate issuer is not recognized.
Expected Result
Build processed with latest source code
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (13 by maintainers)
You need to supply a .gitconfig secret which configures git to allow self-signed certs, please see this documentation: https://docs.openshift.org/latest/dev_guide/builds.html#other-authentication