Specify Multiple Certificates In Conf File

How do I specify multiple --certs in a conf file? I have tried to do so, but multiple cert entries in a file seem to overwrite previous ones, so only the last entry takes effect. Specifying multiple --certs in the command line seem to work, but a conf file would be easier to work with. Thanks!

Hi @marjomercado,

We juse use https://pypi.python.org/pypi/ConfigArgParse internally - if you look at the docs, you should find something that works for you. :slight_smile:

Thanks mhils! This explains the behavior I was seeing:

“key = [value1, value2, …] is handled as if “–key value1 –key value2” etc. was specified on the command line. In your python code this key must be defined as a list (eg. action=”append”).”

The key word is “append”, so I assume mitmproxy has that action.