有些设备挂在官网的免费serverless服务了,现在本地搭了一个服务器想创建一个连接器过去,8883端口,开TLS和服务端证书验证,上传了CA证书,但是一致无法连接。
2024-09-25T03:19:49.932760+00:00 [error] crasher: initial call: ecpool_worker:init/1, pid: <0.3468.0>, registered_name: [], exit: {{tls_alert,{handshake_failure,"TLS client: In state wait_cert_cr at ssl_handshake.erl:2164 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}"}},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,961}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}, ancestors: [<0.3467.0>,<0.3465.0>,ecpool_sup,<0.2764.0>], message_queue_len: 1, messages: [{'EXIT',<0.3469.0>,{shutdown,{tls_alert,{handshake_failure,"TLS client: In state wait_cert_cr at ssl_handshake.erl:2164 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}"}}}}], links: [<0.3467.0>], dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 28, reductions: 510; neighbours:
2024-09-25T03:19:49.933007+00:00 [error] Supervisor: {<0.3467.0>,ecpool_worker_sup}. Context: start_error. Reason: {tls_alert,{handshake_failure,"TLS client: In state wait_cert_cr at ssl_handshake.erl:2164 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}"}}. Offender: id={worker,1},pid=undefined.
2024-09-25T03:19:49.933123+00:00 [error] Supervisor: {<0.3465.0>,ecpool_pool_sup}. Context: start_error. Reason: {shutdown,{failed_to_start_child,{worker,1},{tls_alert,{handshake_failure,"TLS client: In state wait_cert_cr at ssl_handshake.erl:2164 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}"}}}}. Offender: id=worker_sup,pid=undefined.
如果不开服务端证书验证的话是提示400banned