Fix “error during connect: Get https://10.10.18.10:2376/v1.37/containers/json: x509: certificate has expired or is not yet valid”

So…this happened lately: $ docker ps error during connect: Get https://xx.xx.xx.xx:xxxx/vx.xx/containers/json: x509: certificate has expired or is not yet valid Browsing to the URL gave me: This site can’t provide a secure connection xx.xx.xx.xx didn’t accept your login certificate, or one may not have been provided. Try contacting the system admin. ERR_BAD_SSL_CLIENT_AUTH_CERT journalctl -u docker.service… Continue Reading Fix “error during connect: Get https://10.10.18.10:2376/v1.37/containers/json: x509: certificate has expired or is not yet valid”

git clone on Windows running into host trust/accept host key dead lock

If you are getting $ git clone git@github.com:worp1900/my-project.git Cloning into ‘my-project’… The server’s host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server’s rsa2 key fingerprint is: ssh-rsa 2048 github:key If you trust this host, enter “y” to add the key… Continue Reading git clone on Windows running into host trust/accept host key dead lock

A quick self-signed certificate for local development

openssl req -x509 -sha256 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 Keep in mind: This is for local development. Put in additional safety for self-signed production certs. Optional: Add the location and company information via parameter so you don’t have to manually enter it: openssl req -x509 -sha256 -newkey rsa:4096 -keyout key.pem -out cert.pem… Continue Reading A quick self-signed certificate for local development

Bypass HSTS in Chrome – thisisunsafe and badidea

If you encounte a website with an invalid certificate and chrome won’t let you access it because of HSTS being enabled, you can simply type “thisisunsafe” (Chrome v.65+) and bypass this check to access the website anyways. Hint: Before Chrome v.65 this is “badidea”. You simply click anywhere into the website, where Chrome displays the… Continue Reading Bypass HSTS in Chrome – thisisunsafe and badidea

SSH-Agent forwarding

Some notes on the side about SSH-Agent forwarding so the private key does not need to be put on to systems you’re connecting to, but you can still tunnel onward: Hoarded Homely Hints – Configuring SSH: Always Forwarding Your Agent And some cool SSH Tricks in general plus some explanation: tychoish – 9 awesome ssh… Continue Reading SSH-Agent forwarding