首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Matomo4.7.1核心:存档ssl证书问题

Matomo4.7.1核心:存档ssl证书问题
EN

Stack Overflow用户
提问于 2022-03-25 17:29:34
回答 1查看 183关注 0票数 -1

我在RHEL8上安装了Matomo4.7.1,并在运行核心存档时收到一条错误消息。

代码语言:javascript
运行
复制
/opt/matomo/matomo-4.7.1/plugins/GeoIp2/GeoIP2AutoUpdater.php(175): GeoIP2AutoUpdater: failed to download 'https://download.db-ip.com/free/dbip-city-lite-2022-03.mmdb.gz' to '/opt/matomo/matomo-4.7.1/tmp/latest/DBIP-City.mmdb.gz.download': curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was: download.db-ip.com [Query: , CLI mode: 1]

我们公司使用的是自签名证书,它安装在这台服务器上,Apache和PHP都按预期工作。我可以使用命令行curl下载错误消息中给出的文件,没有任何问题,但是运行核心存档总是显示错误。我还添加了接受无效ssl证书的选项,这并没有帮助。

代码语言:javascript
运行
复制
php /opt/matomo/matomo/console core:archive --url=https://myserver.com/matomo/ --accept-invalid-ssl-certificate

我还用pem文件的路径更新了php.ini文件,但没有工作。

代码语言:javascript
运行
复制
curl.cainfo = "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"

还有什么是我遗漏的或者可以检查的吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-28 14:03:02

原来,Matomo有配置项,您可以将其设置为使用自定义pem文件,而不是Matomo中包含的配置项。

https://forum.matomo.org/t/certificate-issues-during-update/30238/8https://matomo.org/faq/troubleshooting/faq_34226/

代码语言:javascript
运行
复制
To solve this issue, you are able to provide your own cacert file that trusts your proxies certificate. To use your own file, follow these steps:

1. Upload your cacert.pem file in a folder on your server such as /path/to/your/cacert.pem
2. Add custom_cacert_pem = "/path/to/your/cacert.pem" to the [General] section of your config file config/config.ini.php.
3. Make sure the certification is readable by your webserver.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71620952

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档