AdminUser.wOrdpress.cOm

Archive for the ‘Encryption’ Category

Assume that cert.pem is the cert you have as a text file.
>> who issued the cert?
openssl x509 -noout -in cert.pem -issuer
>> to whom was it issued?
openssl x509 -noout -in cert.pem -subject
>> for what dates is it valid?
openssl x509 -noout -in cert.pem -dates
>> the above, all at once
openssl x509 -noout -in cert.pem -issuer -subject -dates
>> [...]

Encrypt a file from command line using gpg

Posted by: SiiN on: January 22, 2008

To encrypt a file
$gpg -c filename
To Decrypt file
$gpg file.gpg