You are currently viewing Openshift : certificate signed by unknown authority

Openshift : certificate signed by unknown authority

What is the problem :

Hey, are you also one of those getting issue in Openshift which says certificate signed by unknown authority. There can be multiple reasons for this issue.

Why is the problem : certificate signed by unknown authority

This problem would have occurred while you may be trying to deploy any service in Openshift cluster and getting the exact below error in one of the steps:

  • — Prepare docker image to push —
  • WARNING! Using –password via the CLI is insecure. Use –password-stdin.
  • Error response from daemon:

Solution to the problem : certificate signed by unknown authority

Alright, Let’s go through the solution, You can add your Openshift domain into the insecure registries i.e. daemon.json file of a docker file. Follow the step by step process:

  • $ Type the below command to go to the root user
    • $ cd ~
  • $ Next, go to the docker installation directory
    • cd ~/.docker
  • $ ls -lrt
    • total 24
    • drwxr-xr-x <some content> 13 Mar 2020 application-template
    • -rw——- <some content> 13 Mar 2020 .buildNodeID
    • -rw-r–r–@ <some content> 13 Mar 2020 daemon.json
    • drwxrwxrwx+ <some content> 13 Mar 2020
    • -rw——-@ <some content> 13 Mar 2020 config.json
    • drwxr-xr-x <some content> 13 Mar 2020
  • vim daemon.json
  • cat daemon.json
    • {“experimental” : false, “debug” : true, “insecure-registries” : [“<domain>”]}

Conclusion

I hope by now you would have fixed the issues. You can checkout our other blogs on the Jenkins

About the Author

Pawan Sinha is a blogger whose interests in writing blogs on a day to day issues for any engineer working for a software company. To discuss his work, He has a background in Testing/DevOps/Engineering/Cloud/AWS/GCP. His portfolio.

Leave a Reply