Followed directions on the site, have apt-transport-https installed. I see the following error when running apt-get update:
W: Failed to fetch https://deb.nodesource.com/node_4.x/dists/trusty/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.
yet I'm able to access the index via curl:
$ curl https://deb.nodesource.com/node_4.x/dists/trusty/main/binary-amd64/Packages --head
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 19 Feb 2016 15:56:04 GMT
Content-Type: text/plain
Content-Length: 2294
Last-Modified: Wed, 17 Feb 2016 04:49:18 GMT
Connection: keep-alive
ETag: "56c3fbce-8f6"
Strict-Transport-Security: max-age=15552000
Accept-Ranges: bytes
Whoops. Nevermind. Finally found the verbose/debug options for apt:
$ apt-get update -o 'Debug::Acquire::https=true'
...
100% [Sources 27.9 MB] [Waiting for headers]* Connected to deb.nodesource.com (192.241.233.42) port 443 (#8)
* error reading ca cert file /etc/ssl/certs/ca-certificates.crt (Error while reading file.)
* Closing connection 8
* Hostname was found in DNS cache
* Trying 192.241.233.42...
...
Obviously my ca-certs are messed up. Solved via
sudo apt-get --reinstall install ca-certificates
Most helpful comment
Whoops. Nevermind. Finally found the verbose/debug options for apt:
Obviously my ca-certs are messed up. Solved via
sudo apt-get --reinstall install ca-certificates