Tag Archives: private key

(openssl) verify that a private key matches a certificate

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

How to authenticate on a machine with ssh (protocol 1) without password

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