jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Csaba Palfi <notificati...@github.com>
Subject Re: [jclouds-labs] Add docker cacert to keystore with maven (#187)
Date Tue, 14 Jul 2015 08:11:58 GMT
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
Mime
View raw message