Sha256: 5c74f7ad72bc0f3d903dc3f93ceb30b7ad7c5a82f0e676eec26d96e540fb1f92

Contents?: true

Size: 357 Bytes

Versions: 20

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

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
    key_authorization
  end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
acme-client-2.0.19 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.18 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.17 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.16 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.15 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.14 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.13 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.12 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.11 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.10 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.9 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.8 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.7 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.6 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.5 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.4 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.3 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.2 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.1 lib/acme/client/resources/challenges/http01.rb
acme-client-2.0.0 lib/acme/client/resources/challenges/http01.rb