请问register时,https的证明书问题怎么解决

来源:12-3 搭建GitLab CI服务器和Pipeline演示

再也不上QQ鸟

2020-05-04

[tank31xj2000@getlabcidemo ~]$ sudo gitlab-ci-multi-runner register
Running in system-mode.

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://35.221.65.96/
Please enter the gitlab-ci token for this runner:
Ere6rb5zd51oNfHmtATC
Please enter the gitlab-ci description for this runner:
[getlabcidemo]:
Please enter the gitlab-ci tags for this runner (comma separated):
test,demo
Whether to run untagged builds [true/false]:
[false]:
Whether to lock Runner to current project [true/false]:
[false]:
ERROR: Registering runner… failed runner=Ere6rb5z status=couldn’t execute POST against https://35.221.65.96/api/v4/runners: Post https://35.221.65.96/api/v4/runners: x509: cannot validate certificate for 35.221.65.96 because it doesn’t contain any IP SANs
PANIC: Failed to register this runner. Perhaps you are having network problems

写回答

1回答

麦兜搞IT

2020-05-06

您好,您安装的gitlab有证书么?我们课程的演示没有使用https,是用的http

如果要用证书,您的gitlab 需要配置https, 两种办法,1,购买https证书,2,使用自签名的https证书

sorry,这些内容已经超出了我们的课程范围

0
1
再也不上QQ鸟
非常感谢!
2020-05-14
共1条回复

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1896 问题

查看课程