A while ago I had to renew the SSL certificate for a website I’m taking care of. How do I verify that a private key matches a certificate? [codesyntax lang=”bash”] openssl x509 -noout -modulus -in server.crt | openssl md5 openssl rsa -noout -modulus -in server.key | openssl md5 [/codesyntax] How do I verify that a … Continue reading (openssl) verify that a private key matches a certificate →
I’ve generated key pairs using PuttyGen, but they are not compatible with OpenSSH. How do I use these keys with OpenSSH? Well, PuttyGen supports exporting to an OpenSSH compatible format. [codesyntax lang=”bash”] Open PuttyGen Click Load Load your private key Go to Conversions->Export OpenSSH Save the new OpenSSH key when prompted. [/codesyntax]
This document describes the necessary steps to be carried out in order to authenticate with ssh protocol 1 without password. 1. Generate private/public pair of keys on client computer (let’s say desktop) [codesyntax lang=”bash”] ssh-keygen -t rsa1 [/codesyntax] 2. Copy the public key to the server [codesyntax lang=”bash”] ssh-copy-id -i identity.pub user@server [/codesyntax] 3. Try … Continue reading How to authenticate on a machine with ssh (protocol 1) without password →
I can't memorize much, so I take notes!