shopify oauth problem reason: unable to get local issuer certificate

hello community

i have a problem when executing “shopify theme list” and the error reads below.

request to https://accounts.shopify.com/oauth/introspection failed,

reason: unable to get local issuer certificate

Error: unable to get local issuer certificate

at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)

at TLSSocket.emit (node:events:520:28)

at TLSSocket.emit (node:domain:488:12)

at TLSSocket._finishInit (node:_tls_wrap:1078:8)

at ssl.onhandshakedone (node:_tls_wrap:864:12)

Has anyone come across this? Rather confusing as I’ve just managed to install rbenv versions ruby 3.2.1 and Shopify-Cli (pre-req Node/NPM).

1 Like

@jeremy_a_dowe - You may want to try with these 2 lines commands done separately. After executing these, the “Error: unable to get local issuer certificate” disappeared.

npm config set strict-ssl false
set NODE_TLS_REJECT_UNAUTHORIZED=0

my current dev environment:

node - v18.20.3 (latest is v22.3.0)
shopify cli - 3.79.2

npm - 10.8.1 (latest)
git - git version 2.49.0.windows.1 (latest)
ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x64-mingw32]
gem - 3.2.33