If you're on Linux, then you probably have the OpenSSL command-line tools already available to you. Otherwise, you'll need to install a Windows package: http://www.openssl.org/related/binaries.html
Once that's done, this page explains how you can extract the public key: openSSL: how to extract public key? - Stack Overflow