Created
October 31, 2023 13:07
-
-
Save Nenzyz/2e30980ce51174ff63d51f7672535116 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Convert pem to der | |
| openssl x509 -outform der -in certificate.pem -out certificate.der | |
| # Import | |
| keytool -importcert -trustcacerts -file ~/Downloads/mitmproxy-ca-cert.der -alias mitmproxy -storepass changeit -keystore /Users/<USER>/.asdf/installs/java/liberica-17.0.6+10/lib/security/cacerts | |
| # asdf keystore location on macOS | |
| /Users/<USER>/.asdf/installs/java/<JAVA_INSTALLATION>/lib/security/cacerts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment