Skip to content

Commit

Permalink
Try to fix pixielabs#5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdinand Niedermann committed Feb 14, 2017
1 parent 0dda37e commit 9663cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/letsencrypt-rails-heroku/letsencrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ def self.configure
end

def self.challenge_configured?
configuration.acme_challenge_filename &&
configuration.acme_challenge_filename &&
configuration.acme_challenge_filename.start_with?(".well-known/") &&
configuration.acme_challenge_file_content
end

class Configuration
attr_accessor :heroku_token, :heroku_app, :acme_email, :acme_domain, :acme_endpoint

# Not settable by user; part of the gem's behaviour.
attr_reader :acme_challenge_filename, :acme_challenge_file_content

Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/letsencrypt.rake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace :letsencrypt do
print "Testing filename works (to bring up app)..."

# Get the domain name from Heroku
hostname = heroku.domain.list(heroku_app).first['hostname']
hostname = domains.first
open("http://#{hostname}/#{challenge.filename}").read
puts "Done!"

Expand Down Expand Up @@ -85,7 +85,7 @@ namespace :letsencrypt do
certificate = client.new_certificate(csr) # => #<Acme::Client::Certificate ....>

# Send certificates to Heroku via API

# First check for existing certificates:
certificates = heroku.sni_endpoint.list(heroku_app)

Expand Down

0 comments on commit 9663cca

Please sign in to comment.