I'm trying to automate running of mitmdump binary in ubuntu. I'm providing self generated certs to it using command: ./mitmdump --cert *=mycert.pem
. But help doesn't define any commands to provide the private key pass phrase. How do i provide the password during the start up?
I have tried to provide the input to it using command: ./mitmdump --cert *=mycert.pem <<< "mypassword"
, as suggested here, but it still asks my PEM pass phrase.
If it helps, I'm starting the mitmdump process from java code using Runtime.getRuntime().exec(COMMAND)
. Generating the certs without password isn't really a possibility.