Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务端rttys如何开启登录验证 #112

Open
hefeng1415 opened this issue Jul 13, 2022 · 2 comments
Open

服务端rttys如何开启登录验证 #112

hefeng1415 opened this issue Jul 13, 2022 · 2 comments

Comments

@hefeng1415
Copy link

Environment

rtty

  • arch:
  • os:
  • version:

rttys

  • arch:arm64
  • os:ubuntu
  • version:4.0.2

Description

赵工,您好!为提高服务端的接入的安全性,服务端rttys如何开启验证,让客户端以密码或者证书的形式登录

@zhaojh329
Copy link
Owner

zhaojh329 commented Jul 13, 2022

本身就支持登录验证的。
你应该是本地访问,本地访问验证默认是关闭的。可以通过参数开启。
--local-auth

@hefeng1415
Copy link
Author

本身就支持登录验证的。 你应该是本地访问,本地访问验证默认是关闭的。可以通过参数开启。 --local-auth

运行generate-CA.sh,生成了一下文件


client.pem client.p12 ca.srl client.crt client.csr client.key
server.crt server.csr server.key ca.crt ca.key


服务端:
然后在rttys,conf中将ssl选项打开(其中ssl-cacert的文件使用了server.csr),
运行服务端打印显示ssl开启(Listen user on: :5913 SSL on)。

客户端:
指令运行rrty -c client.pem -k client.pem ,
打印显示(err rtty[23443]: (net.c:94) network connect timeout)

请问是哪里出现了问题导致服务端和客户端无法建立ssl认证呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants