I'm writing a Grails plugin for internal Grails apps to use. I need the plugin to install a truststore (and inside of it, an added SSL cert) and make it available to whatever Grails app includes it as a compile-time plugin.
Hence, if my truststore is called cacerts.jks
, and the name of the SSL cert stored therein is called myssl.cer
, when the user adds the following to their Grails app's BuildConfig.groovy
:
plugins {
compile ":myplugin:VERSION"
}
...then the Grails app will trust the myssl.cer
that is stored in its JKS.
Any ideas as to how to accomplish this?