-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring certain CA details, fixes #5386 #5441
Open
Prinzhorn
wants to merge
4
commits into
mitmproxy:main
Choose a base branch
from
Prinzhorn:ca_details_options
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ <h3 class="my-4">Install mitmproxy's Certificate Authority</h3> | |
{% include 'icons/' + icon + '-brands.svg' %} | ||
<div class="media-body"> | ||
<h5 class="mt-0">{{ title | safe }}</h5> | ||
<a class="btn btn-sm btn-success" href="/cert/{{ filetype }}" target="_blank">🔏 Get mitmproxy-ca-cert.{{ | ||
<a class="btn btn-sm btn-success" href="/cert/{{ filetype }}" target="_blank">🔏 Get {{ ca_basename }}-ca-cert.{{ | ||
filetype }}</a> | ||
<a class="btn btn-sm btn-info show-instructions" href="#{{ title.split(' ')[0] }}" id="{{ title.split(' ')[0] }}">📖 | ||
Show Instructions</a> | ||
|
@@ -39,29 +39,29 @@ <h5>Manual Installation</h5> | |
</ol> | ||
<h5>Automated Installation</h5> | ||
<ol> | ||
<li>Run <code>certutil.exe -addstore root mitmproxy-ca-cert.cer</code> | ||
<li>Run <code>certutil.exe -addstore root {{ ca_basename }}-ca-cert.cer</code> | ||
(<a href="https://technet.microsoft.com/en-us/library/cc732443.aspx">details</a>). | ||
</li> | ||
</ol> | ||
{% endcall %} | ||
{% call entry('Linux', 'linux') %} | ||
<h5>Ubuntu/Debian</h5> | ||
<ol> | ||
<li><code>mv mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crt</code></li> | ||
<li><code>mv {{ ca_basename }}-ca-cert.pem /usr/local/share/ca-certificates/{{ ca_basename }}.crt</code></li> | ||
<li><code>sudo update-ca-certificates</code></li> | ||
</ol> | ||
{% endcall %} | ||
{% call entry('macOS', 'apple') %} | ||
<h5>Manual Installation</h5> | ||
<ol> | ||
<li>Double-click the PEM file to open the <samp>Keychain Access</samp> application.</li> | ||
<li>Locate the new certificate "mitmproxy" in the list and double-click it.</li> | ||
<li>Locate the new certificate "{{ ca_basename }}" in the list and double-click it.</li> | ||
<li>Change <samp>Secure Socket Layer (SSL)</samp> to <samp>Always Trust</samp>.</li> | ||
<li>Close the dialog window and enter your password if prompted.</li> | ||
</ol> | ||
<h5>Automated Installation</h5> | ||
<ol> | ||
<li><code>sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain mitmproxy-ca-cert.pem</code></li> | ||
<li><code>sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain {{ ca_basename }}-ca-cert.pem</code></li> | ||
</ol> | ||
{% endcall %} | ||
{% call entry('iOS <small>– please read the instructions!</small>', 'apple') %} | ||
|
@@ -70,14 +70,14 @@ <h5>iOS 13+</h5> | |
<li>Use Safari to download the certificate. Other browsers may not open the proper installation prompt.</li> | ||
<li>Install the new Profile (<samp>Settings -> General -> VPN & Device Management</samp>).</li> | ||
<li><span class="text-danger"><strong>Important:</strong> Go to <samp>Settings -> General -> About -> Certificate Trust Settings</samp>. | ||
Toggle <samp>mitmproxy</samp> to <samp>ON</samp>.</span></li> | ||
Toggle <samp>{{ ca_basename }}</samp> to <samp>ON</samp>.</span></li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it actually the basename that is displayed there? |
||
</ol> | ||
{% endcall %} | ||
{% call entry('Android', 'android', 'cer') %} | ||
<h5>Android 10+</h5> | ||
<ol class="mb-2"> | ||
<li>Open the downloaded CER file.</li> | ||
<li>Enter <samp>mitmproxy</samp> (or anything else) as the certificate name.</li> | ||
<li>Enter <samp>{{ ca_basename }}</samp> (or anything else) as the certificate name.</li> | ||
<li>For credential use, select <samp>VPN and apps</samp>.</li> | ||
<li>Click OK.</li> | ||
</ol> | ||
|
@@ -108,8 +108,8 @@ <h5>Firefox</h5> | |
{% include 'icons/certificate-solid.svg' %} | ||
<div class="media-body"> | ||
<h5 class="mt-0">Other Platforms</h5> | ||
<a class="btn btn-sm btn-success" href="/cert/pem" target="_blank">🔏 Get mitmproxy-ca-cert.pem</a> | ||
<a class="btn btn-sm btn-success" href="/cert/p12" target="_blank">🔏 Get mitmproxy-ca-cert.p12</a> | ||
<a class="btn btn-sm btn-success" href="/cert/pem" target="_blank">🔏 Get {{ ca_basename }}-ca-cert.pem</a> | ||
<a class="btn btn-sm btn-success" href="/cert/p12" target="_blank">🔏 Get {{ ca_basename }}-ca-cert.p12</a> | ||
</div> | ||
</li> | ||
</ul> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it actually the basename that is displayed there?