Home > other >  Is it possible to use Salt http.query with ssl client verification?
Is it possible to use Salt http.query with ssl client verification?

Time:01-28

Is it possible to use Salt http.query with ssl client verification?

There are ca_bundle and cert options for salt.utils.http.query command but there is not any key options for private key.

Thank you.

CodePudding user response:

yes it is possible. cert needs to be better documented.

if you look at https://github.com/saltstack/salt/blob/master/salt/utils/http.py#L339-L351 you can see that cert is being checked if it is a list. This is because cert is passed to the underlying http library. and they take cert as a list when it is meant to be used for client side verification. item 0 in the list being the cert item 1 being the key.

really it should be a tuple but a list will work.

  •  Tags:  
  • Related