How to configure https?

I’d like to access to ManageIQ worked on the https protocol.

My ManageIQ runs on https by following steps.

  1. Create SSL certificate
    openssl genrsa -out server.key 2048</code> <code> openssl req -new -key server.key -out server.csr
    $ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

  2. Edit script/rails based on this

  3. Add ‘config.force_ssl = true’ line to config/environments/development.rb

  4. Restart app
    $ bin/rake evm:restart

@wtakase Where are you placing your cert files? I made the changes in your instructions but now my evm server will not start.

My cert files are under /home/miqbuilder/.ssl/.
And here is my setting of script/rails:
– snippet –
server.ssl_options = {
:private_key_file => ‘/home/miqbuilder/.ssl/server.key’,
:cert_chain_file => ‘/home/miqbuilder/.ssl/server.crt’
– snippet –

@wtakase Thanks that works!
Have you had any issues with restarting EVM? I’ve been having issues with restarting evm after I enable https. The restart doesn’t throw any errors but when I try to access the web ui it does not load in the browser.