Skip to content

x509: certificate signed by unknown authority error for valid certs #1599

Closed

Description

@GarimaSharma

Bug Report

On runing

$ 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.

  • Concourse version:
    3.3.3
  • Deployment type (BOSH/Docker/binary):
    Bosh
  • Infrastructure/IaaS:
    GCP
  • Browser (if applicable):
    N/A
  • Did this used to work?:
    Don't know

Activity

  1. jtarchie commented on Sep 18, 2017

    @jtarchie
    Contributor

    @GarimaSharma if it is a valid wildcard cert it should work.

    • Does your system have the valid ca-certs?
    • Wildcard is only good for one level, not multi, so you can do *.domain.com not *.*.domain.com.
    • Are you sure you applied the cert correctly to the load balancer appliance in front of your domain?
  2. vito commented on Sep 18, 2017

    @vito
    Contributor

    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.

  3. GarimaSharma commented on Sep 19, 2017

    @GarimaSharma
    Author

    @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.

  4. PXMYH commented on Feb 18, 2018

    @PXMYH

    @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.

  5. dhoffi commented on Feb 19, 2018

    @dhoffi

    had the same problem with the https://github.com/starkandwayne/bucc concourseCI
    running bucc test solved this for me
    (root-cause was a teardown and fresh setup of concourse in my case)

  6. abdelhegazi commented on Nov 23, 2018

    @abdelhegazi

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions