Title: Passing cert parameter gives SSL error · Issue #283 · python-consul/python-consul · GitHub
Open Graph Title: Passing cert parameter gives SSL error · Issue #283 · python-consul/python-consul
X Title: Passing cert parameter gives SSL error · Issue #283 · python-consul/python-consul
Description: when using client certificate downloaded as part of client config zip file from hashicorp cloud console and passing the same to consul give error host="consul-cluster.consul.AAAAAAAA.aws.hashicorp.cloud" token="XXXXXX" scheme="https" por...
Open Graph Description: when using client certificate downloaded as part of client config zip file from hashicorp cloud console and passing the same to consul give error host="consul-cluster.consul.AAAAAAAA.aws.hashicorp....
X Description: when using client certificate downloaded as part of client config zip file from hashicorp cloud console and passing the same to consul give error host="consul-cluster.consul.AAAAAAAA.aws.hashi...
Opengraph URL: https://github.com/python-consul/python-consul/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Passing cert parameter gives SSL error","articleBody":"when using client certificate downloaded as part of client config zip file from hashicorp cloud console and passing the same to consul give error\r\n\r\nhost=\"consul-cluster.consul.AAAAAAAA.aws.hashicorp.cloud\"\r\ntoken=\"XXXXXX\"\r\nscheme=\"https\"\r\nport=\"443\"\r\nverify=True\r\ncert=\"/home/r2_user1/Downloads/consul/ca.pem\"\r\n\r\nprint(\"consul host is \", host, token, port, scheme)\r\n cc:consul.Consul=consul.Consul(host=host,token=token,port=port,scheme=scheme,cert=cert)\r\n cc.kv.put('foo', 'bar')\r\n\r\nBelow is SSL error encounted , without the certs parameter the calls work properly\r\n\r\n\r\nconsul host is consul-cluster.consul.AAAAA.aws.hashicorp.cloud 69d69bed-f849-947d-f75c-a1edc16468e1 443 https\r\ntaking a lock \u003cconsul.std.Consul object at 0x7f8de4782950\u003e\r\nTraceback (most recent call last):\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/connectionpool.py\", line 706, in urlopen\r\n chunked=chunked,\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/connectionpool.py\", line 382, in _make_request\r\n self._validate_conn(conn)\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/connectionpool.py\", line 1010, in _validate_conn\r\n conn.connect()\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/connection.py\", line 421, in connect\r\n tls_in_tls=tls_in_tls,\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/util/ssl_.py\", line 397, in ssl_wrap_socket\r\n context.load_cert_chain(certfile, keyfile)\r\nssl.SSLError: [SSL] PEM lib (_ssl.c:3932)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/requests/adapters.py\", line 449, in send\r\n timeout=timeout\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/connectionpool.py\", line 756, in urlopen\r\n method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/urllib3/util/retry.py\", line 574, in increment\r\n raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='consul-cluster.consul.AAAAAAAA.aws.hashicorp.cloud', port=443): Max retries exceeded with url: /v1/kv/foo?token=XXXXXXXXXX (Caused by SSLError(SSLError(9, '[SSL] PEM lib (_ssl.c:3932)')))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"../consul_lib/test_consul.py\", line 27, in \u003cmodule\u003e\r\n cc.kv.put('foo', 'bar')\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/consul/base.py\", line 623, in put\r\n CB.json(), '/v1/kv/%s' % key, params=params, data=value)\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/consul/std.py\", line 28, in put\r\n cert=self.cert)))\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/requests/sessions.py\", line 602, in put\r\n return self.request('PUT', url, data=data, **kwargs)\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/requests/sessions.py\", line 542, in request\r\n resp = self.send(prep, **send_kwargs)\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/requests/sessions.py\", line 655, in send\r\n r = adapter.send(request, **kwargs)\r\n File \"/home/r2_user1/jv/notification_framework/build/python_workspace/lib/python3.7/site-packages/requests/adapters.py\", line 514, in send\r\n raise SSLError(e, request=request)\r\nrequests.exceptions.SSLError: HTTPSConnectionPool(host='consul-cluster.consul.AAAAAA.aws.hashicorp.cloud', port=443): Max retries exceeded with url: /v1/kv/foo?token=XXXXXXXXX (Caused by SSLError(SSLError(9, '[SSL] PEM lib (_ssl.c:3932)')))\r\n\r\n","author":{"url":"https://github.com/pi19404","@type":"Person","name":"pi19404"},"datePublished":"2021-06-06T09:30:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/283/python-consul/issues/283"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:138fefbd-6240-e378-4db4-c135d7350cb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9C4:2222C7:4944FE:5E5B7D:696B8863 |
| html-safe-nonce | d568007b285c642798e9819591a933af1a36d3fc8d14ed5ab1e5e62179d359ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUM0OjIyMjJDNzo0OTQ0RkU6NUU1QjdEOjY5NkI4ODYzIiwidmlzaXRvcl9pZCI6IjQyMTUxMjQ1Mzg2MzU4MTUwMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6ff404d9a721e65b8f6630aeea0a21c3b2f62928be2864ebd1398750f6a614ad |
| hovercard-subject-tag | issue:912745404 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-consul/python-consul/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d6531deb48ec7a76a1f3aa709270e235dd3befb543b85eb77dc165a2b54895f/python-consul/python-consul/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d6531deb48ec7a76a1f3aa709270e235dd3befb543b85eb77dc165a2b54895f/python-consul/python-consul/issues/283 |
| og:image:alt | when using client certificate downloaded as part of client config zip file from hashicorp cloud console and passing the same to consul give error host="consul-cluster.consul.AAAAAAAA.aws.hashicorp.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pi19404 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-consul/python-consul git https://github.com/python-consul/python-consul.git |
| octolytics-dimension-user_id | 143416393 |
| octolytics-dimension-user_login | python-consul |
| octolytics-dimension-repository_id | 24473148 |
| octolytics-dimension-repository_nwo | python-consul/python-consul |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24473148 |
| octolytics-dimension-repository_network_root_nwo | python-consul/python-consul |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width