Chef BERKSHELF3 proxy settings - Windows platform

前端 未结 1 1368
夕颜
夕颜 2020-12-18 17:09

I just wanna know how to set proxy values(Url, user, password) for Berkshelf3 under windows platform when I launch the command >berks intall ?

  • I already try

1条回答
  •  忘掉有多难
    2020-12-18 17:47

    Your problem is here:

    connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certific ate verify failed (Faraday::SSLError)

    Your proxy is doing an interception on SSL traffic and use its own certificate to resign the distant site certificate.

    So you have to add your proxy certificate into the cacerts.pem of your ruby install.

    With a navigator show the proxy information of a ssl site and use 'copy to file' and chose base64 encoded x509 format.

    Next edit this file to copy its content

    Edit the cacert file (for chefdk according to you install it would be c:/opscode/chefdk/embedded/ssl/cacerts.pem

    Paste your proxy certificate before the last one (to avoid messing with the end of file) and retry that should do the trick.

    For some cases you have to setup the SSL_CERT_FILE env var:

    set SSL_CERT_FILE=c:/opscode/chefdk/embedded/ssl/cacerts.pem

    Source

    0 讨论(0)
提交回复
热议问题