Working on upgrading to Grails 7 and seems the app...
# questions
b
Working on upgrading to Grails 7 and seems the app will not auto generate the SSL cert like previous versions when running in development mode. I have worked around this by generating a cert myself and including the proper config in my application-development.yml file. By am wondering, is there a way to get the app to generate this like previous versions?
Copy code
|Generating SSL certificate
Warning |
Unable to automatically generate SSL certificate, manual configuration required. Set 'server.ssl.key-store' in application.yml
j
I had no idea that we shipped a grails script that generates an ssl cert by default. Looks like an exception is being thrown, i'd copy the run-app command from grails-profiles/base/commands and add a log of line 155 to see why it's not generating.
@James Fredley we may want to add some logging instead of silently failing in that run-app script. I suspect it's an OS / jdk difference that's causing this problem
j
Let's put it in a ticket. We are gradually identify the hundreds of things Grails does in addition to the thousands we already knew about. localhost is considered a secure context, not if that helps. https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#potentially_trustworthy_origins
p
That's new for me, how that did work previously? @billgonemad
b
Locally for development, we would just do run-app -https which was generating the cert behind the scenes
👍 1
j
Please add this as an issue on https://github.com/apache/grails-core/issues