summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2024-02-09 22:14:26 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2024-02-09 22:14:26 +0100
commitcd094dfceaa474fb20713801cda464f0079598a4 (patch)
tree0d0d4714dbba24dc81e5c42d19f03121f3945f7f
parent7bd0583bfdf32938393a61176df7325732d4ed12 (diff)
threading doesn’t work in this situation, need to find different approach
-rw-r--r--macir.rb8
1 files 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