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

How do I get a Linux box to use RADIUS authentication with a certificate?

· 52CE 我爱测

Googling anything involving RADIUS configuration has been hell, as many of the terms get mixed together, making search results useless, so... I have a RADIUS server offering EAP-TTLS based communication using a certificate signed…

问题原文

原帖链接 · Tim Morris · CC BY-SA 4.0

Googling anything involving RADIUS configuration has been hell, as many of the terms get mixed together, making search results useless, so...

I have a RADIUS server offering EAP-TTLS based communication using a certificate signed by a private CA to which I have both the public and private keys. I already have this server configured to accept requests from a given IP address.

How do I properly install the public CA key on a box such that:

  • The box will use it to verify the RADIUS server is who it says it is

  • That the communication is encrypted

  • That the box will not trust any other root CA for authenticating users logging onto the box

已采纳解答

原帖链接 · HackSlash · CC BY-SA 4.0

Really depends on if your client is a RedHat, Debian, or Arch based distro.

How you issue the certs depend on what OS the CA is on.

To import the CA Server’s certificate on CentOS, Fedora, or RedHat based system, copy the certificate into /etc/pki/ca-trust/source/anchors/, then run the sudo update-ca-trust command.

For Debian based systems copy your CA public key to /usr/local/share/ca-certificates/ then run the sudo update-ca-certificates command.

That solves most of your concerns. Next you need to issue machine certificates to each client. On Linux this is usually done by generating Certificate Signing Requests (CSR) using OpenSSL. Then you sign those requests from your private CA. Copy and install the signed certificates back to the client. Now the CA trusts the client and the client trusts the CA.

For more information read this.

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

资料来源与适用范围

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

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

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