Added support for certificates without passwords

I made the certificate password optional. Did not have time to test this.