Skip to content

Instantly share code, notes, and snippets.

@Nenzyz
Created October 31, 2023 13:07
Show Gist options
  • Select an option

  • Save Nenzyz/2e30980ce51174ff63d51f7672535116 to your computer and use it in GitHub Desktop.

Select an option

Save Nenzyz/2e30980ce51174ff63d51f7672535116 to your computer and use it in GitHub Desktop.
# 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