xct's notes
Search…
Introduction
Red Team
Active Directory
Host Enum
Payloads
Passwords
Privilege Escalation
Evasion & Bypasses
Concepts & Research
Binary Exploitation
Web
Cloud
Mobile
Hardware
Crypto
Templates
Misc
Blue Team
Active Directory
Malware Analysis
SIEM
Misc
Labs
Keys & Signing
Language & Framwork Specifics
Misc
HackTheBox
Crossfit
Luanne
APT
Attended
Delivery
Cereal
Powered By
GitBook
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!
Previous
Misc
Next - Misc
Language & Framwork Specifics
Last modified
1yr ago
Copy link
Contents
OpenSSL
Putty