Fix bug with Java VM installation script for Charles Proxy 4.5.6

I encountered an error when trying to install the Charles Proxy (4.5.6) root certificate on my Java VM. I use the 4.5.6 version because the root certificate has a 50-year expiry date.

The solution for me, was to fix a typo in the installation script with a sed command.


TL;DR


Installation script error

  • If you get an error about “Could not find cacerts file”, then the ^ unix command will update the path to the cacert file (which should fix the installation script’s problem)

Successful installation

  • As you can see from the attached GIF, you arer now prompted to enter your password. i.e. the shell script was successful

Leave a comment