I use the excellent Charles proxy to simplify web debugging. I use the SSL proxy capabilities and have installed the general CA certificate that it belongs to. Although this works, it is unsafe because, as long as my browser trusts this certificate, I am vulnerable to a MIM attack.
I am trying to use OpenSSL to create a "Custom CA Certificate" as Charles allows me to fix this. These are the following steps:
NAME=daaku-ca openssl genrsa -out $NAME.key 1024 openssl req -new -key $NAME.key -out $NAME.csr openssl x509 -days 3650 -signkey $NAME.key -in $NAME.csr -req -out $NAME.crt openssl pkcs12 -export -out $NAME.pfx -inkey $NAME.key -in $NAME.crt
Following these steps, I get $NAME.crt signed by the root certificate, which I successfully imported into my Mac OS X keychain. And although $NAME.pfx in Charles works and is used correctly, if I enter the password for it, it does not work, if there is no password.
My question is how to create a certificate that works in Charles and does not need a password.
source share