http01.rb 326 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Acme::Client::Resources::Challenges::HTTP01 < Acme::Client::Resources::Challenges::Base
  CHALLENGE_TYPE = 'http-01'.freeze
  CONTENT_TYPE = 'text/plain'.freeze

  def content_type
    CONTENT_TYPE
  end

  def file_content
    authorization_key
  end

  def filename
    ".well-known/acme-challenge/#{token}"
  end
end