Log the command output on CertificateConfigError
In auth_token middleware if the CertificateConfigError is raise for a reason other than the certificate file missing or the ca cert file missing, log the actual output from the verify comment to aid in correcting the issue. Related-Bug: #1285833 Change-Id: I6b469b9037b7ef59993132f87a75152149ee6310
This commit is contained in:
@@ -1259,6 +1259,7 @@ class AuthProtocol(object):
|
|||||||
self.signing_ca_file_name):
|
self.signing_ca_file_name):
|
||||||
self.fetch_ca_cert()
|
self.fetch_ca_cert()
|
||||||
continue
|
continue
|
||||||
|
self.LOG.error('CMS Verify output: %s', err.output)
|
||||||
raise
|
raise
|
||||||
except cms.subprocess.CalledProcessError as err:
|
except cms.subprocess.CalledProcessError as err:
|
||||||
self.LOG.warning('Verify error: %s', err)
|
self.LOG.warning('Verify error: %s', err)
|
||||||
|
Reference in New Issue
Block a user