Skip to content

Instantly share code, notes, and snippets.

@rherrick
Created May 10, 2018 01:29
Show Gist options
  • Save rherrick/13326bad097b1317aad4d5c8493653d9 to your computer and use it in GitHub Desktop.
Save rherrick/13326bad097b1317aad4d5c8493653d9 to your computer and use it in GitHub Desktop.
Shows failure to install Charles proxy cert on Java 10 JDK on OS X
decker:Internet Plug-Ins root# JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home $(find /Applications/Charles.app/Contents/ -name "*.command")
############################################
Charles Root Certificate Java VM Import Tool
############################################
This tool imports your Charles Root Certificate into the Java VMs that it finds on
your computer, so that Java applications trust your Charles Root Certificate for
SSL Proxying.
Connecting to Charles: 127.0.0.1:8888
Could not find cacerts file: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/jre/lib/security/cacerts
Found JavaAppletPlugin
Adding Charles SSL CA certificate to JavaAppletPlugin cacerts file:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
** This may require your password in order to use sudo to import the certificate **
Certificate was added to keystore
Complete
Press return to exit.
decker:Internet Plug-Ins root# find /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home -name cacerts
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib/security/cacerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment