Hi David, Looking at your code it looks you are wrongly using insecure=True. I think you should use insecure=True while creating heat client object, in your code it's "heat". Something similar to below should work:-
from heatclient import client as heatclient heat=heatclient.Client(api_version, **creds, insecure=True) #in place of api_version pass heat api version and for **creds pass all the credentials stack = heat.stacks.create(stack_name=stack_name, template=nct_template, parameters={}) Thanks and Regards Yatin Karel On Fri, Nov 10, 2017 at 4:32 PM, David Gabriel <davidgab...@gmail.com> wrote: > Dears, > > Do you have any idea to work arround this problem by deactivating the check > of the certificate ? > I have this line in my code but the check is still processed. What do you > suggest ? > > stack = heat.stacks.create(stack_name=stack_name, template=nct_template, > parameters={}, insecure=True) > > > 2017-11-09 8:51 GMT+01:00 David Gabriel <davidgab...@gmail.com>: >> >> Dears, >> >> I want to use use a .pem file to call python-heatclient API in order to >> create stacks (Openstack address is based on https). >> I am wondering, where to copy this pem file and how to refer it ? >> Bellow the errors I got: >> >> File "/usr/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line >> 109, in create >> data=kwargs, headers=headers) >> File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line >> 223, in json_request >> resp = self._http_request(url, method, **kwargs) >> File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line >> 166, in _http_request >> **kwargs) >> File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 53, >> in request >> return session.request(method=method, url=url, **kwargs) >> File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line >> 468, in request >> resp = self.send(prep, **send_kwargs) >> File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line >> 576, in send >> r = adapter.send(request, **kwargs) >> File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line >> 447, in send >> raise SSLError(e, request=request) >> SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL >> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed >> 127.0.0.1 - - [08/Nov/2017 20:34:56] "POST /stack_create HTTP/1.1" 500 >> 2801 >> >> Please tell me where to put my .pem and how to refer it in the code to >> work with python heatclient ? >> >> Thanks in advance. >> Best regards. > > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev