added support for pkcs12