Certificates
An electronic document used to prove the validity of a public key.
Connect to Remote Server with SSL/TLS
You need to have two files - certificate and private key.
nc --ssl-cert cert.pem --ssl-key private-key.pem <target-ip> <target-port>
# or
ncat --ssl-cert cert.pem --ssl-key private-key.pem <target-ip> <target-port>
RSA Attack
-
Retrieve Private Key
-
RSA attack tool (mainly for ctf) - retreive private key from weak public key and/or uncipher data.
-
PFX (PKCS#12) -> PEM -> RSA
-
Crack Password of PFX
crackpkcs12 is useful to crack password.
-
Extract a Private Key
-
For Encrypted Key
-
For No Encrypted Key
-
-
Extract a Public Key (Cert)
-
Create RSA Key
Using the private key generated.
RSA Asymmetrick Encrypt/Decrypt
-
Encryption
-
Generate a Private Key
-
Generate a Public Key using the Private Key
-
Encrypt using the Public Key
-
-
Decryption
-
Decrypt a Private Key
-