Public Key

Setup ssh keys for remote access

Published on

To easily setup your public keys into freshly created servers, specially when copy and paste is limited like in proxmox web console you can benefit for one of your accounts in a public or private git servers reachable by your server like Forgejo, Github, and Gitlab.

They all have the same API where you can fetch your public keys under the pattern:

https://<git-server>/<username>.keys

Try it in your browser to see the output.


Extract certificate from a domain

Published on

To extract the certificate use:

openssl s_client -showcerts -servername humberto.io -connect humberto.io:443 </dev/null 2>/dev/null

If your target is not using SNI you don’t need to use the -servername <fqdn> option.

Then you can pipe it with other OpenSSL commands to extract information in the format that you need.

To extract PEM formatted cert:

| openssl x509 -outform PEM

To extract the public key:

| openssl x509 -pubkey -noout

To extract the Fingerprint: