npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community. certification invalid?

npm WARN registry Unexpected warning for Miscellaneous Warning undefined: request to failed, reason: Hostname/IP doesn’t match certificate’s altnames: “Host: is not in the cert’s altnames:,”
npm WARN registry Using stale package data from due to a request error during revalidation.

When i open in my browser it gives this :

Registry is unusable… having the same issue

Fastly error: unknown domain. Please check that this domain has been added to a service.

npm verb node v8.9.4
npm verb npm  v6.2.0
npm ERR! request to failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: is not in the cert's altnames:,"
npm verb exit [ 1, true ]
npm timing npm Completed in 750ms

Also having this issue:

~$ curl -v
* Rebuilt URL to:
*   Trying
* Connected to ( port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Fastly, Inc.;
*  start date: Jul  9 18:51:07 2018 GMT
*  expire date: Jul  9 18:51:07 2020 GMT
*  subjectAltName does not match
* SSL: no alternative certificate subject name matches target host name ''
* stopped the pause stream!
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (51) SSL: no alternative certificate subject name matches target host name ''

Works fine on ´www´ and ´status´ subdomains but those certificates are issued by “Dogwood” and “DigiCert”.

Registry subdomain certificate claims to be issued to ´´ and “GlobalSign”.

edit: I guess the cache service they use (or the way NPM uses it) broke something?

If you change DNS providers (to cloudflare or something) it will work.

This is also affecting deployments on Google Cloud Functions.

the same thing here, i tried to use an other registry to keep working, but some dependencies have reference to

Had this problem for the last couple of hours. Not got too much into the certificate problem but a fix for me was to change Internet providers… from (here in the UK) BT to EE and my npm install worked ok from seems to be working again