Exporting certificates from a Java keystore

There is a patently easy way to convert JKS keystores to PKCS12 certificate bundles (and vice versa). It’s a (poorly documented) keytool command that was introduced with JDK 6: Convert JKS to P12 keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12 Convert P12 to JKS keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -deststoretype JKS … Read more

Dynamic IP script for Internode

WWW::Mechanize script for programmatically obtaining the current (dynamic) IPv4 and IPv6 addresses assigned to an Internode ADSL session: #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; ## Get current session data for our Internode session my $mech = WWW::Mechanize->new(); my $user = “”; ## Enter Internode username my $pass = “”; ## Enter Internode password $mech->get(‘https://secure.internode.on.net/myinternode/sys0/login’); … Read more

OS X Mountain Lion tips and tricks

General Create a bootable USB installer from the download (the Lion DiskMaker thingy never worked for me) Get rid of the Duplicate command / restore the Save As… command in the File menu Make the user Library visible: sudo chflags nohidden ~/Library Plug-ins Flash installs as normal from adobe.com – use either Safari or Firefox … Read more