apachectl configtest“功能未实现”且 Let's Encrypt 自动续订失败

apachectl configtest“功能未实现”且 Let's Encrypt 自动续订失败

我的一台 CentOS 7 服务器certbot-auto renew由于运行 apachectl configtest 时出错而无法运行。以下是它的输出:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/domain.example.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Non-interactive renewal: random delay of 21 seconds
Error while running apachectl configtest.

[Fri Feb 01 18:50:51.124734 2019] [:crit] [pid 15667] (38)Function not implemented: AH00141: Could not initialize random number generator

Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running apachectl configtest.\n\n[Fri Feb 01 18:50:51.124734 2019] [:crit] [pid 15667] (38)Function not implemented: AH00141: Could not initialize random number generator\n',)
Attempting to renew cert (domain.example.com) from /etc/letsencrypt/renewal/domain.example.com.conf produced an unexpected error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running apachectl configtest.\n\n[Fri Feb 01 18:50:51.124734 2019] [:crit] [pid 15667] (38)Function not implemented: AH00141: Could not initialize random number generator\n',). Skipping.

正如它所说,apachectl 配置测试出现以下错误。

[Sat Feb 02 04:12:38.169629 2019] [:crit] [pid 21166] (38)Function not implemented: AH00141: Could not initialize random number generator

我使用 yum 安装的 httpd(Apache) 2.4.37。它运行正常,但我担心一旦它停止,它可能无法再次启动。

我确认过了/dev/随机/dev/urandom存在。我在 Google 上搜索解决方案,但这个问题似乎并不常见。有什么想法吗?

相关内容