在Freeradius中为EAP创建证书时出错

Ahm*_*awy 5 radius freeradius

我正在为eap-tls创建证书,所以我可以将此证书添加到移动设备,然后移动设备可以访问接入点而无需使用用户名或密码

我按照文件上的自述radiusd /证书

所以我运行make ca.pem创建根证书,然后运行make server.pem以创建服务器证书

然后运行,radiusd -X但我有这个错误:

Failed reading private key file /etc/raddb/certs/server.pem:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
rlm_eap_tls: Failed initializing SSL context
rlm_eap (EAP): Failed to initialise rlm_eap_tls
/etc/raddb/mods-enabled/eap[17]: Instantiation failed for module "eap"
Run Code Online (Sandbox Code Playgroud)

Ahm*_*awy 7

经过3天的搜索,我发现问题出在哪里

在文件mods-enable/eap中

我必须设置密码 private_key_password = radius

要像文件server.cnf中的密码一样

[ req ]
prompt          = no
distinguished_name  = server
default_bits        = 2048
input_password      = radius
output_password     = radius
Run Code Online (Sandbox Code Playgroud)


mus*_*aha 6

将 freeradius 安装到 fedora 29 时遇到此问题

我解决了

  
cd  /etc/raddb/certs
./bootstrap