From cd094dfceaa474fb20713801cda464f0079598a4 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Fri, 9 Feb 2024 22:14:26 +0100 Subject: threading doesn’t work in this situation, need to find different approach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- macir.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/macir.rb b/macir.rb index cdb9b61..a5ea61b 100644 --- a/macir.rb +++ b/macir.rb @@ -220,6 +220,7 @@ end def wait_for_challenge_validation(challenge, cert_name) p 'Requesting validation of challenge' + p challenge.object_id acme_request_with_retries { challenge.request_validation } while challenge.status == 'pending' @@ -564,7 +565,7 @@ end certs.each_pair do |cert, opts| order_authorizations = acme_request_with_retries { opts['order'].authorizations } order_authorizations.each do |auth| - pp auth + # pp auth # pp auth.domain # pp auth.challenges # pp auth.url @@ -597,12 +598,13 @@ propagation_threads.each(&:join) validation_threads = {} domain_attrs.each_pair do |d, attrs| # domain_attrs[d][:auth_thread] = Thread.new(attrs) do |attrs| - validation_threads[d] = Thread.new(attrs) do |attrs| + # validation_threads[d] = Thread.new(attrs) do |attrs| # wait_for_challenge_validation(auth.domain, auth.dns01) # pp auth.dns01 # pp auth.dns01 + # p attrs['auth'].object_id wait_for_challenge_validation(attrs['auth'].dns01, attrs['auth'].domain) - end + # end # validation_threads[d] = domain_attrs[d][:auth_thread] end -- cgit v1.2.3