You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x509: certificate signed by unknown authority error for valid certs #1599
$ fly -t pcf-concourse login
logging in to team 'cloudops-eu'
could not reach the Concourse server called pcf-concourse:
Get https://<redacted>/api/v1/info: x509: certificate signed by unknown authority
is the targeted Concourse running? better go catch it lol
Also, we are using a valid wildcard cert signed by DigiCert.
I expect no error while trying to target.
There's not a lot we can do about this - if it doesn't allow the cert, it must either be invalid or may be misconfigured such that fly doesn't trust it. We know this works with our own valid certs.
One other thing to check: sometimes you have to configure the full chained cert on the server side.
@vito@jtarchie browsers are accepting the cert as valid so we feel that the configuration is valid. we are not sure why fly thinks it's invalid, any pointers on how to proceed? Thanks.
@GarimaSharma maybe you'll need to update the concourse server certification bundle, I had a similar issue (not quite since it's a self-signed cert), but the way to resolve it is to get the certification chain from browser and add it to concourse server.
One way to validate is to connect into concourse server and curl from there, you can use curl --ca-cert to provide extra certifications for validation.
@GarimaSharma I would be interested in knowing if you have resolved the issue. I am in exact position as you are, browsers trust the cert but fly isn't i have to add --ca-cert to fly login so that i can login otherwise it would give me x509: certificate signed by unknown authority although this cert should be trusted as it is signed by one of big CA which should be trusted in most of OSes
Activity
jtarchie commentedon Sep 18, 2017
@GarimaSharma if it is a valid wildcard cert it should work.
*.domain.comnot*.*.domain.com.vito commentedon Sep 18, 2017
There's not a lot we can do about this - if it doesn't allow the cert, it must either be invalid or may be misconfigured such that
flydoesn't trust it. We know this works with our own valid certs.One other thing to check: sometimes you have to configure the full chained cert on the server side.
GarimaSharma commentedon Sep 19, 2017
@vito @jtarchie browsers are accepting the cert as valid so we feel that the configuration is valid. we are not sure why fly thinks it's invalid, any pointers on how to proceed? Thanks.
PXMYH commentedon Feb 18, 2018
@GarimaSharma maybe you'll need to update the concourse server certification bundle, I had a similar issue (not quite since it's a self-signed cert), but the way to resolve it is to get the certification chain from browser and add it to concourse server.
One way to validate is to connect into concourse server and curl from there, you can use
curl --ca-certto provide extra certifications for validation.dhoffi commentedon Feb 19, 2018
had the same problem with the https://github.com/starkandwayne/bucc concourseCI
running
bucc testsolved this for me(root-cause was a teardown and fresh setup of concourse in my case)
bump etree tsa handlers mux clockwork goxmldsig genproto grpc
abdelhegazi commentedon Nov 23, 2018
@GarimaSharma I would be interested in knowing if you have resolved the issue. I am in exact position as you are, browsers trust the cert but
flyisn't i have to add--ca-certtofly loginso that i can login otherwise it would give mex509: certificate signed by unknown authorityalthough this cert should be trusted as it is signed by one of big CA which should be trusted in most of OSes