ノンブロッキング tcp クライアントで openssl を使用しています。2 つの TLS 接続を確立しようとしていますが、それらは異なるセッションです。1つ目は正常に接続されています。しかし、接続時に秒の奇妙なエラーがあります。2 番目の接続のログを次に示します。
12:03:31.768 TLS: INFO: sess[0x4efdd3c] Handshake: start
12:03:31.768 TLS: INFO: sess[0x4efdd3c] Loop: before/connect initialization
12:03:31.768 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 write client hello A
12:03:31.768 TLS: INFO: sess[0x4efdd3c] Exit: error in SSLv3 read server hello A
12:03:31.768 TLS: INFO: SessConnect read blocked.
12:03:31.768 UTPT: INFO: tls conn[0x2000d] state read blocked.
12:03:31.768 UTPT: DEBUG: ConnProcTcpWr tls connecting.
12:03:31.782 UTPT: INFO: read tcp conn[0x2000d] of user[0x20008].
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 read server hello A
12:03:31.782 TLS: ERROR: verify error[18:self signed certificate] in depth[0].
12:03:31.782 TLS: INFO: issuer is </O=Self-signed certificate for kamailio/OU=cp/CN=cp.example.com/emailAddress=root@cp.example.com>
12:03:31.782 TLS: INFO: subject is </O=Self-signed certificate for kamailio/OU=cp/CN=cp.example.com/emailAddress=root@cp.example.com>
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 read server certificate A
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 read server done A
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 write client key exchange A
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 write change cipher spec A
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 write finished A
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Loop: SSLv3 flush data
12:03:31.782 TLS: INFO: sess[0x4efdd3c] Exit: error in SSLv3 read finished A
12:03:31.782 TLS: INFO: SessConnect read blocked.
12:03:31.782 UTPT: INFO: tls conn[0x2000d] state read blocked.
12:03:31.782 UTPT: DEBUG: ConnProcTcpRd tls connecting.
12:03:31.814 UTPT: INFO: read tcp conn[0x2000d] of user[0x20008].
12:03:31.814 TLS: INFO: sess[0x4efdd3c] Write: SSLv3 read finished B
12:03:31.814 TLS: INFO: sess[0x4efdd3c] Exit: failed in SSLv3 read finished B
SSL fsm は完了 A の読み取りを望んでいますが、読み取り完了 B で失敗しました。これが発生する原因を特定するのを手伝ってください。
失敗したときのエラー文字列は次のとおりです。
error:1408C095:SSL routines:SSL3_GET_FINISHED:digest check failed
これが何を意味するのかわかりません。