
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2021 02:08 PM
Hello Guys,
I have tried to login to my PDI, using NOW-CLI tool! but unfortunatly i obstructed by this showen error:
unable to get local issuer certificate
λ now-cli login --host https://xxx-xxx.service-now.com --password xxxxxx
× Connection to 'https://xxx-xxx.service-now.com' failed. Credentials not saved.
unable to get local issuer certificate
login [host] [method] [username] [password]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--host glide instance url [string] [default: "https://localhost:8443"]
--method authentication method [choices: "basic"] [default: "basic"]
--username basic auth username [string] [default: "admin"]
--password basic auth password [string] [default: "admin"]
My development environment detail:
λ node -v
v14.17.2
λ npm -v
6.14.13
λ now-cli --version
Now CLI @19.0.0
λ npm list -g --depth 0
C:\Program Files\nodejs
+-- @servicenow/cli@19.0.0
+-- keytar@7.7.0
`-- npm@6.14.13
npm ERR! peer dep missing: @octokit/core@>=3, required by @octokit/plugin-request-log@1.0.4
---------------------------------------------
1- Global installation folder(C:\Program Files\nodejs) --> accessible for admins/trusted users.
2- I ran the command as an administrator.
Any suggestion or ideas would be much appreciated thank you all 🙂
Best regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2021 02:15 PM
Hello,
Finally, the solution was to set reject unauthorized TLS to no (windows - CMD command):
set NODE_TLS_REJECT_UNAUTHORIZED=0
Hope this will help people who had faced the same issue as me!
Best regards 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 12:21 AM
Hi Islam, thanks a lot, I followed the steps that you suggested and now it works fine!
Maybe I ran the set command not as administrator.
After login I create a project, to complete the npm install command without errors I have to downgrade my node version to 12.x in this way the installation was completed successfully.
Michele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2022 01:45 PM
Same issue on Windows 10 Enterprise

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2022 11:41 AM
Hi Paolo,
Could you please try to follow exact same steps as in here:
NPM:
- set NODE_TLS_REJECT_UNAUTHORIZED=0 (as admin)
- npm config set strict-ssl false (as admin)
- VC_redist.x64.exe --> install it
- python-2.7.amd64 --> install it
- npm config set python C:\Python27 (python27 path) (as admin)
- npm install --global --production windows-build-tools (as admin)
NowUI Framework:
- snc extension add --name ui-component
- snc configure profile set
- snc ui-component project --name {comp-name} --description {description} --profile {profile} --offline --scope {scope}
- npm i
- npm audit fix
- snc ui-component develop
- snc ui-component deploy
Regards,
Islam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 12:57 AM
The error code that has been receiving, I found a helpful resource guidance in detail for the error solution from:- https://cheapsslweb.com/blog/fixing-unable-to-get-issuer-cert-locally-error/. You can check it out once.
I hope it helps!