0

我試圖將Opscenter警報發佈到AWS Api Gateway端點(其形式爲https://xxxxxxxx.execute-api.us-east-1.amazonaws.com/opscenteralerts/alerts)。我能夠從flask server發佈到api網關端點。我也嘗試將opscenter提醒發佈到另一個web服務器。但我無法將其發佈到API網關端點。我檢查了我的安全組和API端點也是開放的。我錯過了什麼?datastax opscenter posturl.conf未向AWS api網關端點發布警報

下面是opscenterd.log

堆棧跟蹤與API網關
2017-07-04 18:58:06,651 [opscenterd] ERROR: [Errno 1] Received fatal alert: handshake_failure 
    File "/usr/share/opscenter/lib/py/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite 
    why = getattr(selectable, method)() 
    File "/usr/share/opscenter/lib/py/twisted/internet/legacy_ssl.py", line 645, in doConnect 
    self._connectDone() 
    File "/usr/share/opscenter/lib/py/twisted/internet/legacy_ssl.py", line 1182, in _connectDone 
    self.startTLS(self.ctxFactory) 
    File "/usr/share/opscenter/lib/py/twisted/internet/legacy_ssl.py", line 542, in startTLS 
    if LegacyConnection.startTLS(self, ctx, client): 
    File "/usr/share/opscenter/lib/py/twisted/internet/tcp.py", line 50, in startTLS 
    self.socket = JConnection(ctx.getContext(), self.socket, False) 
    File "/usr/share/opscenter/lib/py/JythonSSLWrapper.py", line 88, in __init__ 
    self._wrapped_socket = self._create_client_socket(sock) 
    File "/usr/share/opscenter/lib/py/JythonSSLWrapper.py", line 107, in _create_client_socket 
    return self._context.wrap_socket(sock) 
    File "/usr/share/opscenter/lib/jvm/jython-standalone-2.7.0.9.jar/Lib/ssl.py", line 991, in wrap_socket 
    return SSLSocket(sock=sock, server_side=server_side, 
    File "/usr/share/opscenter/lib/jvm/jython-standalone-2.7.0.9.jar/Lib/ssl.py", line 521, in __init__ 
    self.do_handshake() 
    File "/usr/share/opscenter/lib/jvm/jython-standalone-2.7.0.9.jar/Lib/ssl.py", line 630, in do_handshake 
    self._sock._handle_channel_future(handshake, "SSL handshake", wait=True) 
    File "/usr/share/opscenter/lib/jvm/jython-standalone-2.7.0.9.jar/Lib/_socket.py", line 365, in handle_exception 
    raise _map_exception(jlx) 
(MainThread) 

回答

0

大多數SSL握手錯誤是由客戶端不支持SNI造成的。 API網關需要SNI,沒有它就無法工作。 Opscenter是否支持SNI?

相關問題