themekit: theme get command fails with: x509: certificate signed by unknown authority

I tried following the Getting Started documentation but when I run the theme get command it fails with the error message: x509: certificate signed by unknown authority and appears to be referencing the meta.json file

It’s worth noting that this is an existing app that I’m taking over from another developer.

My Environment

OS : MacOS High Sierra Themekit version: v.0.8.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (12 by maintainers)

Most upvoted comments

I temporarily had this problem which broke all commands that made HTTP requests. I fixed it by opening up a new terminal. I have no idea why that worked.

Poking around the repositories, I am pretty sure the issue is https://github.com/golang/go/issues/24652 (resolved in go 1.12) / https://github.com/golang/go/issues/26039 (backport to 1.11, still not released)

As homebrew go version is 1.11, not 1.12, the issue is still present for me…

For now I was able to work around it by doing the following steps:

  1. run openssl s_client -connect my-store.myshopify.com:443 and see what certs are used. Check Keychain for presence of the certificates listed. DigiCert SHA2 High Assurance Server CA seems to be missing on my machine.
  2. download the DigiCert SHA2 High Assurance Server CA from DigiCert site
  3. open Keychain Access and drag the downloaded certificate into login keychain
  4. right-click the certificate, expand “Trust” section, and mark it as “Always Trust”

After that, everything seems to work so far…