### 1: Open preferences, click on "Advanced", then select"Encryption":
### 2: Click "View Certificates", "Import", and select the certificate file:
### 3: Tick "Trust this CS to identify web sites", and click "Ok":
You should now see the mitmproxy certificate listed in the Authorities tab.