Skip to main content
a typo was removed
Source Link
mahemoff
  • 46.3k
  • 39
  • 168
  • 233

You As long as you have the local keys somewhere in your config directory you should be able to do:

rails s puma -p 3000 -b 'ssl://0.0.0.0:3000?key=config/your_key_file.key&cert=config/your_certificate_file.crt'

If you need to know how to generate a local certificate and key this is a good post: https://rossta.net/blog/local-ssl-for-rails-5.html#create-a-self-signed-certificate

You As long as you have the local keys somewhere in your config directory you should be able to do:

rails s puma -p 3000 -b 'ssl://0.0.0.0:3000?key=config/your_key_file.key&cert=config/your_certificate_file.crt'

If you need to know how to generate a local certificate and key this is a good post: https://rossta.net/blog/local-ssl-for-rails-5.html#create-a-self-signed-certificate

As long as you have the local keys somewhere in your config directory you should be able to do:

rails s puma -p 3000 -b 'ssl://0.0.0.0:3000?key=config/your_key_file.key&cert=config/your_certificate_file.crt'

If you need to know how to generate a local certificate and key this is a good post: https://rossta.net/blog/local-ssl-for-rails-5.html#create-a-self-signed-certificate

Source Link
NM Pennypacker
  • 6.9k
  • 11
  • 37
  • 40

You As long as you have the local keys somewhere in your config directory you should be able to do:

rails s puma -p 3000 -b 'ssl://0.0.0.0:3000?key=config/your_key_file.key&cert=config/your_certificate_file.crt'

If you need to know how to generate a local certificate and key this is a good post: https://rossta.net/blog/local-ssl-for-rails-5.html#create-a-self-signed-certificate