5 ssl ssl-certificate lets-encrypt composer
我有自己的 gitlab 服务器,现在使用 letencrypt SSL 证书进行保护。
现在,我想通过 packagist 发布一些包。但是当我在 packagist 中输入 git repository url 时,我收到以下错误消息(urls 已更改):
Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror 'https://url.de/gituser/repository.git' '/home/composer/.composer/cache/vcs/https---url.de-gituser-repository' Cloning into bare repository '/home/composer/.composer/cache/vcs/https---url.de-gituser-repository'... fatal: unable to access 'https://url.de/gituser/repository.git': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Run Code Online (Sandbox Code Playgroud)
每个浏览器都接受该证书。但不是作曲家/包装师。
任何想法为什么?
小智 5
好的,我刚刚发现我的错误。我已经使用cert.pem
而不是fullchain.pem
.
在这里解释:https : //stackoverflow.com/questions/34189199/how-do-i-use-let-s-encrypt-with-gitlab