xct's notes
Search…
Keys & Signing

OpenSSL

Create key and csr

1
openssl req -newkey rsa:4096 -keyout <user key> -out <user csr> -nodes -days 365 -subj "/CN=<name>"`
Copied!

Sign csr with ca

1
openssl x509 -req -in <user csr> -CA <ca cert> -CAkey <ca key> -out <signed user cert> -set_serial 01 -days 365
Copied!

Convert to pkcs12 for use in browsers as client certificate

1
openssl pkcs12 -export -clcerts -in <signed user cert> -inkey <user key> -out <user>.p12
Copied!

Check key infos

1
openssl rsa -pubin -inform PEM -text -noout < public.key
Copied!

Decrypt file with key

1
openssl rsautl -inkey key.priv -decrypt -in file.enc
Copied!

Putty

Convert putty ppk to openssh rsa

1
puttygen private.ppk -O private-openssh -o private.ssh
Copied!
Last modified 1yr ago
Copy link
Contents
OpenSSL
Putty