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: patch-diff.githubusercontent.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:472b68ec-99d9-b7a5-de9a-381f9d7d8038 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2A0:2C338B:1CD0559:2819D19:69778C17 |
| html-safe-nonce | 14f96930ba78ae7030f4867a44e21236bd181ba8d22fa87d5f5063e4f95ea8b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkEwOjJDMzM4QjoxQ0QwNTU5OjI4MTlEMTk6Njk3NzhDMTciLCJ2aXNpdG9yX2lkIjoiMzA4NjU4MTg5OTc2MjA0MzkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7679bb224dcda19a529967f97b57e23bb5e6020f9836dc7d6f94f557b18f96f7 |
| 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 | fd37f8e74ecc49b700617ea694fa6d7b395b6c9a4b79c59b3014da220462ac69 |
| 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 | acb9f387e67b45e2eeb6a57ef561ec67eb21d805 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width