Even after adding this code to Config.groovy
, Grails insists on using its own self-signed certificate:
grails.tomcat.truststorePath = "${grailsSettings.baseDir}/conf/ssl/truststore.jks"
grails.tomcat.truststorePassword = "changeit"
grails.tomcat.clientAuth = "want"
grails.tomcat.keystorePath = "${grailsSettings.baseDir}/conf/ssl/keystore.jks"
grails.tomcat.keystorePassword = "changeit"
grails.tomcat.keyAlias = "localhost"
Any idea how to force Grails to use the real keystore here?
Apparently, it's a common mistake to put these settings in Config.groovy
. They belong in BuildConfig.groovy
. Once I put them in BuildConfig.groovy
, everything worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With