如何使用SSL Certs在CloudFoundry上使用Gremlin.NET连接到Janusgraph

时间:2018-06-14 15:51:48

标签: gremlin pivotal-cloud-foundry janusgraph

我已将Gremlin.NET部署到Pivotal Cloudfoundry但请求失败并显示“无法连接到远程服务器”。我怀疑这是一个证书问题。我看到Java实现有一种在集群连接中指定证书的方法,但是在Gremlin.NET实现中没有看到等价物。

相同的代码在我的本地框(Windows)上正常工作。我能看到的唯一区别是部署到PCF并可能信任问题?

由于

更新:

基于Java的版本适用于PCF。我们怀疑是因为我们通过keyfile,keyCertChainFile和trustCertificateChainFile显式指定了证书。

Coworker能够重现这一点。对不起延迟,我们在当时和现在都有一个版本,我无法获得这些数据。 堆栈跟踪:

{System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.WebSockets.WebSocketException (0x80004005):   Unable to connect to the remote server ---> System.Net.Http.WinHttpException (0x80072F8F): A security error occurred at  
 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at System.Net.WebSockets.WinHttpWebSocket.<ConnectAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.WebSockets.WebSocketHandle.<ConnectAsyncCore>d__20.MoveNext()
at System.Net.WebSockets.WebSocketHandle.<ConnectAsyncCore>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() a
t System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.WebSockets.ClientWebSocket.<ConnectAsyncCore>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.WebSocketConnection.<ConnectAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.Connection.<ConnectAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.ConnectionPool.<CreateNewConnectionAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.ConnectionPool.<GetAvailableConnectionAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.GremlinClient.<SubmitAsync>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.Remote.DriverRemoteConnection.<SubmitBytecodeAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Driver.Remote.DriverRemoteConnection.<SubmitAsync>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Gremlin.Net.Process.Remote.RemoteStrategy.<ApplyAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Gremlin.Net.Process.Utils.WaitUnwrap(Task task)
at Gremlin.Net.Process.Traversal.DefaultTraversal2.ApplyStrategies()
at Gremlin.Net.Process.Traversal.DefaultTraversal2.GetTraverserEnumerator()
at Gremlin.Net.Process.Traversal.DefaultTraversal2.get_TraverserEnumerator()
at Gremlin.Net.Process.Traversal.DefaultTraversal2.MoveNext()
at Gremlin.Net.Process.Traversal.DefaultTraversal2.Next()
at grem_net_test.gremlinService.GetCount() in C:\cWorkbench\grem-net-test\gremlinService.cs:line 25
at gremlin_net_test.Controllers.ValuesController.GetString() in C:\cWorkbench\grem-net-test\Controllers\ValuesController.cs:line 52
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()}

0 个答案:

没有答案