Skip to content

Instantly share code, notes, and snippets.

@k-ta-yamada
Last active January 14, 2021 00:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k-ta-yamada/6d3d6c75980dee5cf1dd189e170badce to your computer and use it in GitHub Desktop.
Save k-ta-yamada/6d3d6c75980dee5cf1dd189e170badce to your computer and use it in GitHub Desktop.
Sinatra + WEBrick + HTTPS
require 'sinatra'
require 'webrick/https'
set :server_settings,
SSLEnable: true,
SSLCertName: [['CN', WEBrick::Utils.getservername]]
get '/' do
'https page'
end
@k-ta-yamada
Copy link
Author

Sinatra(WEBrick)でsslサーバをたてる
https://gist.github.com/suruseas/3489236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment