Gitlab CI Ssl Error

浪子不回头ぞ 提交于 2020-01-17 06:44:34

问题


I dont have error on my pc.But ı have a error ssl on gitlabci. How is it solve this problem ?

Server:Debian

Error Output:

  [Aws\S3\Exception\S3Exception]                                               
  Error executing "PutObject" on "https://s3.ap-south-1.amazonaws.com/bucketname/filename"; AWS HTTP error: Error creating resource: [m  
  essage] fopen(): SSL operation failed with code 1. OpenSSL Error messages:   
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify   
  failed                                                                       
  [file] /builds/burhan/blutron/vendor/guzzlehttp/guzzle/src/Handler/StreamHa  
  ndler.php                                                                    
  [line] 312                                                                   
  [message] fopen(): Failed to enable crypto                                   
  [file] /builds/burhan/blutron/vendor/guzzlehttp/guzzle/src/Handler/StreamHa  
  ndler.php                                                                    
  [line] 312                                                                   
  [message] fopen(https://s3.ap-south-1.amazonaws.com/bucketname/filename): failed to open stream: operation failed                      
  [file] /builds/burhan/blutron/vendor/guzzlehttp/guzzle/src/Handler/StreamHa  
  ndler.php                                                                    
  [line] 312  

回答1:


.gitlab-ci.yml Files

image:

before_script:
  - apt-get update
  - apt-get install -y ca-certificates
  - ....
  - ....

I solved it update and ca-certificates .



来源:https://stackoverflow.com/questions/44262121/gitlab-ci-ssl-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!