[problem]
- You want to generate a self-signed certificate?
- Encrypt a message with triple des
- View base 64 encoded data
- Generate and use random data
- Test ciphers
- Monitor certificate expiry dates
[/problem]
[solution]
openssl to the rescue! 🙂 See examples.
[/solution]
[example]
- openssl code to generate self-signed cert
- encrypt with tripledes
openssl base64 [ -d ]
# encrypted with base64.- Useful fortransfering control/binary content – like this:
dd bs=1 count=512 if=/dev/urandom | openssl base64
Also useful for reading mail
openssl base64 -d /var/spool/mqueue/qfk3GAlBMn018552
- Using openssl s_client to test ciphers supported, with automated script – then loop sites and email.
- Using openssl s_client to extract expiry dates, with automated script – then loop sites and email.
[/example]
[reference]
[tags]openSSL, dd, UNIX, SSL Certificates, PKI, Encryption, Generate Random Data, Unix Coding School[/tags]
[/reference]
If you have found my website useful, please consider buying me a coffee below 😉