Sha256: c830af6b11d62d5af3c101870413dd75c66285e04ca573d257076f180d14621b
Contents?: true
Size: 471 Bytes
Versions: 2
Compression:
Stored size: 471 Bytes
Contents
class Acme::Client::Resources::Challenges::HTTP01 < Acme::Client::Resources::Challenges::Base 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 def request_verification response = client.connection.post(@uri, { resource: 'challenge', type: 'http-01', keyAuthorization: authorization_key }) response.success? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acme-client-0.2.4 | lib/acme/client/resources/challenges/http01.rb |
acme-client-0.2.3 | lib/acme/client/resources/challenges/http01.rb |