Sha256: 460e4a07c0c88cef1a802b04b56477905e4ca76d7cc929a02932481cbb82c679

Contents?: true

Size: 357 Bytes

Versions: 14

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

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
acme-client-1.0.0 lib/acme/client/resources/challenges/http01.rb
acme-client-0.6.3 lib/acme/client/resources/challenges/http01.rb
acme-client-0.6.2 lib/acme/client/resources/challenges/http01.rb
acme-client-0.6.1 lib/acme/client/resources/challenges/http01.rb
acme-client-0.6.0 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.5 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.4 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.3 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.2 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.1 lib/acme/client/resources/challenges/http01.rb
acme-client-0.5.0 lib/acme/client/resources/challenges/http01.rb
leap_cli-1.9 vendor/acme-client/lib/acme/client/resources/challenges/http01.rb
acme-client-0.4.1 lib/acme/client/resources/challenges/http01.rb
acme-client-0.4.0 lib/acme/client/resources/challenges/http01.rb