I have setup a ssh tunnel from local machine to neptune db and established a connection using endpoint. ssh -L 8182:***.us-east-1.neptune.amazonaws.com:8182 ****
I see gremlin console work fine and i can able to run graph query but When i attempt with the python code i see some certificate verify failed.
try:
graph = Graph()
remoteConn = DriverRemoteConnection(
'wss://localhost:8182/gremlin', 'g')
g = graph.traversal().withRemote(remoteConn)
result = g.V().has('customer', 'customerId', 12549).out().valueMap().toList()
print(result)
remoteConn.close()
return result
except Exception as e:
Exeception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
Please advice.