All technological notes.
对称加密
public key
public keypublic key
private key.
private key.private key.Common public key file name
server.crtserver.pemclient.crtclient.pemCommon private key file name
server.keyserver-key.pemclient.keyclient-key.pemA middle man server act as the remote server
url + public key + issuer
requested url must match the certificate url
issuer must be validself-signed certificate is not secure.
Certificate Authortity(CA)
root certificate
Certificate Authortity(CA)Certificate Signing Request (CSR)
# CSR
openssl req -new -key my.key -out my.csr -subj "/C=US/ST=CA/O=MyOrg, Inc./CN=my.com"
# my.key my.csr
How client verify themselves when creating a secure connection with the remote server.
Certificate Signing Request (CSR) and verified with the Certificate Authortity(CA).certificate.cerficate with the Certificate Authortity(CA).private key.Public Key Infrastructure(PKI)
# generate keys
ssh-keygen
# id_rsa: private key
# id_rsa.pub: public key
# copy public key
ssh-copy-id -i id_rsa.pub user@remote_server
# .ssh/authorized_keys
# access remote
ssh user@remote_server
# private key
openssl genrsa -out my.key 1024
# my.key
# public key
openssl rsa -in my.key -pubout > my.pem
# my.pem