Skip to content

fly cli not finding an intermediate ca certificate #2133

Closed

Description

@bsnchan

Hi there!

Bug Report

Fly CLI was reporting that our x509 cert was signed by an unknown authority. Visiting the CI in any browser worked fine.

We then noticed that there is an intermediate CA certificate that the browsers were able to pick up from our system - which the fly cli did not. We're filing this issue since curl succeeded so I'd imagine fly would utilize the same set of ca certs.

A work around was to configure our atc_tls.certificate to contain both the cert and the intermediate CA.

The following can also be handy:

  • Concourse version: 3.10.0
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: GCP
  • Browser (if applicable): All browsers work

Activity

  1. bsnchan commented on Apr 6, 2018

    @bsnchan
    ContributorAuthor
  2. self-assigned this
    on Jul 11, 2018
  3. xtremerui commented on Jul 24, 2018

    @xtremerui
    Contributor

    Due to the limitation of go x509 package, there is no easy way to allow fly to pick up intermediate certs . The workaround is mentioned above, which is configure chain certs in concourse atc tls_cert for bosh deployment or --tls-cert for concourse web command.

  4. jdeppe-pivotal commented on Nov 2, 2018

    @jdeppe-pivotal
  5. eedwards-sk commented on Jan 10, 2019

    @eedwards-sk

    Any updates to this? I dynamically generate the certs from LetsEncrypt, I'd rather not have to figure out how to get their intermediates and provide them explicitly, if possible.

    Edit: I take it back, it was pretty easy to get the intermediate in my configuration

    since I'm using terraform, it already had the issuer certificate available in the object's metadata, so I just appended that to the s3 file that my web node downloads on startup (see the content section):

    resource "aws_s3_bucket_object" "web_public_key" {
      key                    = "${local.s3_path_concourse_tls}/web.pem"
      bucket                 = "${var.aws_bucket_name}"
      content                = "${acme_certificate.web.certificate_pem}${acme_certificate.web.issuer_pem}"
      server_side_encryption = "AES256"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions