Closed kennyk65 closed 8 years ago
Have you tried to run a command like the following? git config http.sslVerify false This will set the sslverify to false in the .git/config file [http] sslVerify = false
If that works we can document it. I thought JGit only used $HOME/.ssh
(no $HOME/.git
) but I'm happy to document whatever works.
Hello,
I am having the same issue, my config server is running with self signed certificate and config clients are not able to connect to the server to get the configuration, is there a property that we can use at client side to get the properties?
Did you try the .git
suggestion above?
@ctatineni @kennyk65 have you tried the suggestion?
@dsyer @spencergibb I think what he means is connection of a boot application to Cloud Config Server. I am having the same issue with our private Cloud Foundry installation:
Could not locate PropertySource: I/O error on GET request for "https://config.X.X.X.X.xip.io/redis/development"
It would be really nice (also for Eureka) to have flag to ignore the certificate error.
There's a shim that you can use here: https://github.com/pivotal-cf/cloudfoundry-certificate-truster. Include that dependency and set the CF_TARGET
to any server that will give you the certificate.
@dsyer is it possible to configure CF_TARGET within the application.yml. Did not find anything regarding that in the repository.
Executing the application locally, with settings like that:
"applicationConfig: [classpath:/bootstrap.yml]" : {
"CF_TARGET" : "https://api.88.198.249.62.xip.io",
"spring.application.name" : "app",
"spring.profiles.active" : "development",
},
The certificate authentication for eureka and cloud config still fails. hm. :-(
@jhiemer I'm not super familiar with it, but I believe it needs to be set as an environment variable.
bootstrap.yml might work - clearly it has to be installed before any SSL communication is needed
With OSX, In my user file system, I don't have that folders .ssh or .git so, how to set this attribute?
sslVerify = false
In Stack overflow exist a question about it: http://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate
One solution could be:
git config --global http.sslVerify false
Hi, In this example: https://github.com/spring-cloud-samples/configserver/blob/master/src/main/resources/git.properties exist a git.properties file, is it possible to indicate this kind of stuff?
Juan Antonio
I don't know what the question is, but git.properties
is just a generated file with git commit ids and stuff in it for the app.
Hi @dsyer,
Yes, my question is how to indicate Spring Boot that the Configuration uses a Git repository with a self signed certificate. I observed that file (git.properties) in the example and I thought that exist some way to interact using that kind of file.
No, git.properties is unrelated to the Config Server. I already linked to the "certificate-truster" shim jar. And there are plenty of resources on configuring ssh and git out there. We will add some documentation to Spring Cloud at some point, so your input is valuable, it's just not clear what you need.
Git and SSH configuration is already mentioned in the user guide. Connecting to the config server over HTTPS is really out of the scope of Spring Cloud Config.
Is there a way for a config client to connect to a config server if the config server is using self-signed certificates? The idea here is to use self-signed for local testing, then use real certificates in production. Is there a property on the client side that can be used to have it relax?
Client's exception, when attempting to connect to the config server, is: