大网数据广告活动
服务器运维问答

OpenVPN: Best methods for multiple server authentication

· 52CE 我爱测

What is the best way for multiple clients to authenticate to multiple severs? I was thinking a token based system when a token is generated for each client and a custom script is added to verify this. But then that means that use…

问题原文

原帖链接 · user3223010 · CC BY-SA 3.0

What is the best way for multiple clients to authenticate to multiple severs? I was thinking a token based system when a token is generated for each client and a custom script is added to verify this. But then that means that users are vulnerable to MITM attacks, as they are not using keys. But generating a client for each server, then having to reset the server and files FOR EACH SERVER is just not acceptable. It also makes revoking very hard. What are the best methods to authenticate multiple users to multiple servers?
Maybe I can use the token based approach and have every user use the same .crt (or is it .pem??), just to confirm the server authenticity to prevent MITM attacks.

已采纳解答

原帖链接 · Florent · CC BY-SA 3.0

I think the best way to do this, is to generate certificates (based on PKI solution). Then you can have a server certificate for each server and a client certificate also for each client. The easiest in that case is to use PKCS12 format which embed the complete chain, with CA, sub-ca and private key.

Then to manage revocation, you can use a an OCSP responder, which will take care of responding to revocation status request.

Easy-RSA can take care of that simple PKI.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。