Cardboard Box

Cardboard Box

A place to store useful snippets of code, links and other such geek stuffs.

Examine x509 Certificate

I've noted uses of the "openssl" command before. Here is another.

A quick way to examine a certificate in plain text.

openssl x509 -text -in cert.pem

Labels: , ,

posted by Don @ 1:12 PM, , link to this post

Convert Seperate Key/Cert Files to PFX

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]

Labels: , ,

posted by Don @ 11:21 AM, , link to this post

Remotely Reboot Windows XP

Using a remote desktop client to connect to a Windows XP box will not provide you with the option to reboot or restart the remote machine. To do this from the command line, open a command prompt (Start->Run->Cmd.exe) and use the command:

shutdown -r -t 0

...to open a gui interface to manage the reboot:

shutdown -i


Labels: ,

posted by Don @ 3:35 PM, , link to this post

Web Based Design Tools

Some great online tools for a web designer or content creator.  I frequently use the Image Optimizer to cheat some load time off my site's images.

http://tools.dynamicdrive.com

Labels: ,

posted by Don @ 5:17 PM, , link to this post

Convert PFX to Separate Key/Cert Files

Using openssl to extract key and certificate files from a .pfx

To extract the private key...
openssl pkcs12 -in [name.pfx] -nocerts -out [private.key]

To extract the certificate...
openssl pkcs12 -in [name.pfx] -clcerts -nokeys -out [certificate.crt]

To decrypt the private key...
openssl rsa -in [private.key] -out [decrypted.key]

Labels: , ,

posted by Don @ 12:24 PM, , link to this post

HTTPS PUT w/Basic Authentication Via Curl

Need to use a secure HTTP PUT over SSL using Basic Auth?
curl -T test.txt -u https://[hostname]/[uri]
Add a -v to see that connection with verbose output.

Labels: , ,

posted by Don @ 10:00 AM, , link to this post

Web Based Color Scheme Generator

Whenever I'm building a web based tool, the aesthetic design part is usually what slows me down the most as it takes me a while to find the "look" I'm going for. I was therefore happy to find a very simple web based color scheme generator that created color schemes that I liked ... http://www.hypergurl.com/colormatch.php

Labels: ,

posted by Don @ 10:04 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.


Labels

Previous Posts

Archives

Links

Powered by Blogger