Examine x509 Certificate
Wednesday, June 24, 2009
I've noted uses of the "openssl" command before. Here is another.
openssl x509 -text -in cert.pem
posted by Don @ 1:12 PM, , link to this post
Convert Seperate Key/Cert Files to PFX
Thursday, June 04, 2009
The reverse of the process of extracting the key/certs from a PFX can be achieved via the following:
openssl pkcs12 -export -in [certificate.crt] -inkey [private.key] -out [package.pfx]
posted by Don @ 11:21 AM, , link to this post
Upper To Lower To Upper Case Command Line
Wednesday, March 25, 2009
Nice trick to pipe command line data through to convert it's alpha characters to upper or lower case. Most people dont even realize the 'tr' command exists on most linux/shell releases.
From UPPER to lower: tr [:upper:] [:lower:]From lower to UPPER: tr [:lower:] [:upper:]Example: ls /directory | tr [:lower:] [:upper:] | sort
posted by Don @ 11:31 AM, , link to this post
Mount ISO (.iso) In Linux
Thursday, January 22, 2009
To mount an ISO (.iso) on a Linux system...
mount -t iso9660 -o ro,loop /path-to-file/file.iso /path-to-mount-point
Labels: Linux
posted by Don @ 4:44 PM, , link to this post
Convert PFX to Separate Key/Cert Files
Tuesday, December 23, 2008
Using openssl to extract key and certificate files from a .pfx
openssl pkcs12 -in [name.pfx]-nocerts -out [private.key]
openssl pkcs12 -in [name.pfx]-clcerts -nokeys -out [certificate.crt]
openssl rsa -in [private.key]-out [decrypted.key]
posted by Don @ 12:24 PM, , link to this post
Strip Leading Zeros In Shell
Thursday, December 04, 2008
Nice trick to strip leading zeros from an IP address at the command line.
echo 002.203.017.001 | awk -F"." '{print int($1)"."int($2)"."int($3)"."int($4)}'
posted by Don @ 1:46 PM, , link to this post
HTTPS PUT w/Basic Authentication Via Curl
Monday, November 10, 2008
Need to use a secure HTTP PUT over SSL using Basic Auth?
curl -T test.txt -uAdd a -v to see that connection with verbose output.https://[hostname] /[uri]
posted by Don @ 10:00 AM, , link to this post
About This Blog
This blog is a place where I hope to put the snippets and trimmings of my geek'dom ... code samples that have served me well, tech links and other such things that'll I find useful. In short, any time I have to Google something, I tend to post it here for others to find as well.
Also, having owned 'digital-penguin.com' for many years and having worked with many a fellow geek, this site also serves as a place where I can always be found.
