Removed the shell script and now using the [keytool maven 
plugin](http://www.mojohaus.org/keytool/keytool-maven-plugin/usage.html) to 
import/delete docker ca certs.

You can now just run `sudo -E  mvn -Pimport-ca-cert generate-resources` and 
it'll import the boot2docker cacert to your Java cacerts keystore. Can also be 
fully fully customized via system properties.

Subsequent imports (e.g. after boot2docker regenerates certificates) requires 
deleting the imported certificate first. There's another profile for that:
`sudo -E  mvn -Pdelete-ca-cert -Pimport-ca-cert generate-resources`

This requires sudo because of the default file permissions of the Java cacerts 
keystore. I'm using the -E option to preserve environment variables when 
sudoing. Probably need to update setup docs, too.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/187#issuecomment-121160868

Reply via email to