Merge "add the verify for the session" into stable/ussuri

This commit is contained in:
Zuul 2020-07-20 09:36:15 +00:00 committed by Gerrit Code Review
commit 35c971f494
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,9 @@ class BarbicanACLAuth(barbican_common.BarbicanAuth):
user_auth = token.Token(auth_url=service_auth.auth_url,
token=context.auth_token,
project_id=context.project_id)
user_session = session.Session(auth=user_auth)
user_session = session.Session(
auth=user_auth,
verify=CONF.certificates.ca_certificates_file)
# create a special barbican client with our user's session
return barbican_client.Client(

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix an issue when the barbican service enable TLS, we create the listerner
failed.