From 723bfdfd3febfbf0ba41966b1e77f9f4bd6f3a90 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 19 Jun 2018 12:21:27 -0400 Subject: fix the retrieval of the ca cert Previously the code counted how many items were displayed in the list of CA certs. However, when the number of certs listed is different from the current renewal count, this can cause errors. I found this variable, "nRenewals" in the returned web page and it matches the current cacert to use. --- files/certreq.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/certreq.sh b/files/certreq.sh index ea645ac..5093f5d 100755 --- a/files/certreq.sh +++ b/files/certreq.sh @@ -10,13 +10,14 @@ # 2017-11-22 Add ca cert chain # 2018-04-16 Add --list and --csr options # 2018-05-07 Add actions for using a CA with manually-approved certs +# 2018-06-19 Fix get number of ca cert # Usage: in ansible role certreq # Microsoft CA cert templates have permissions on them. A user must be able to "enroll" on the template. # Reference: ftemplate.sh 2017-10-10x; framework.sh 2017-10-09a # fundamental curl statements https://stackoverflow.com/questions/31283476/submitting-base64-csr-to-a-microsoft-ca-via-curl/39722983#39722983 # Improve: fiversion="2017-10-10x" -certreqversion="2018-05-07a" +certreqversion="2018-06-19a" usage() { less -F >&2 <