How to set ca-bundle path for OpenSSL in ruby -
i experiencing problem in ruby, ssl cert not validated openssl. think caused ca-bundle.pem not beingness known script. there possibility configure path of ca-bundle.pem manually?
openssl uses ssl_cert_file
environment variable. can set in ruby script using before first require
pulls in openssl:
env['ssl_cert_file'] = '/path/to/ca-bundle.pem'
or, if prefer, can set ssl_cert_file
environment variable in os environment, web server configuration etc depending on situation.
ruby openssl certificate ca
No comments:
Post a Comment