How to change/remove p12 file password

2005-01-12 Thread Jaleel P.A
Hi,

I have a p12 file in which the private key is password protected. I want to
remove the private key password.

Is there any option in openssl to change/remove the p12's private key
password ?

Thanks


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: How to change/remove p12 file password

2005-01-12 Thread Dr. Stephen Henson
On Wed, Jan 12, 2005, Jaleel P.A wrote:

 Hi,
 
 I have a p12 file in which the private key is password protected. I want to
 remove the private key password.
 
 Is there any option in openssl to change/remove the p12's private key
 password ?
 

Currently you have to parse and recreate the PKCS#12 file. There is a function
to change a PKCS#12 file password but its not currently available from the
command line utility.

As for removing the password, that can be can be done. The password however
doesn't just belong to he private key, in can apply to certificates and an
integrity check too using a mac.

There are three different ways to remove the password:

1. Keep encryption and macs but have a NULL password.
2. Keep encryption and macs but have a zero length password.
3. Dont encrypt anything and don't have a mac.

The first two can be done with any version of OpenSSL, the last one only with
0.9.8-dev.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]