Sha256: 0dc08fc28fcee6252076a23997f5e6077199c509d522c44638fedd573167e45d

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acme-client-0.3.7 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.6 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.5 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.4 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.3 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.2 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.1 lib/acme/client/resources/challenges/http01.rb
acme-client-0.3.0 lib/acme/client/resources/challenges/http01.rb