How to configure https?


#1

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


#2

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 https://gist.github.com/masone/5955f4cc0b4d4ef372db

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

  4. Restart app
    $ bin/rake evm:restart


#3

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


#4

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 –


#5

@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.