sinatra and nginx client cert authentication setup, repository for a follow-along of a guide at https://www.integralist.co.uk/posts/client-cert-authentication/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
187B

  1. require 'sinatra'
  2. set :server, %w[thin webrick]
  3. set :bind, '0.0.0.0'
  4. get '/' do
  5. 'Hello world'
  6. end
  7. get '/foo' do
  8. 'Bar'
  9. end
  10. get '/cert' do
  11. request.env['HTTP_X_CLIENTCERT_DN']
  12. end