Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] curl: (60) SSL certificate problem: self signed certificate in certificate chain #20

Open
mickey2012ex opened this issue Jul 20, 2022 · 2 comments

Comments

@mickey2012ex
Copy link

mickey2012ex commented Jul 20, 2022

Question

Received error curl: (60) SSL certificate problem: self signed certificate in certificate chain when deploying
May i know how to ignore or add self signed cert to it?

@talzigm
Copy link

talzigm commented Jan 17, 2023

hi,

any conclusion? i am getting same error

@kalined
Copy link

kalined commented Jan 25, 2023

Hi @talzigm,

If you have deployed runners to the OpenShift, you have to verify a few things to make sure what's the main reason and how to deal with it:

  1. The type of platform the cluster is trying to reach. Is it github.com or GitHub Enterprise Server?;
  2. Check what kind of certificate that platform uses. Is the certificate self-signed?;
  3. Check your firewall and proxy settings;

In case it's a GHES and self-signed certificate, you could try to add the rooCA of the self-signed certificate to your deployment in the OpenShift, to check if that solves the issue or not. Here are the key elements that should be added to the deployment file (for example, from the UI):

   volumeMounts:
        - mountPath: /etc/pki/tls/certs/root-ca.crt
          name: ca-volume
          readOnly: true
          subPath: ca.crt
volumes:
      - name: ca-volume
        secret:
          defaultMode: 420
          secretName: root-ca

and environment variable:

- name: SSL_CERT_FILE
          value: /etc/pki/tls/certs/root-ca.crt

Hope that would help,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants