问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
