Support for File object in initializer and additional fixes

Incorporated changes suggested by dkoper:
- File object is supported by initializer
- BC is no longer used for the KeyStore in the initializer
- Retrieving the private key using the same password which is used for
KeyStore