I'm trying to do some configuration so that I can use SSL/HTTPS with the Faraday gem in my Ruby on Rails app. I'm following the directions on the Faraday official site, but I'm stuck on a step. I don't know how to change the value of OPENSSLDIR
(see image below). I've looked all over for a command to do this. Any help would be appreciated! My OS is Ubuntu.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Mechanize getting “Errno::ECONNRESET: Connection r
- Eager-loading association count with Arel (Rails 3
- Can ServiceStack JsonServiceClient send a get requ
相关文章
- 请大神帮忙 post向https接口发送数据 部署到服务器为什么运行一会后就会报空指针
- ssl配置问题
- Ruby using wrong version of openssl
- Intermittent “sslv3 alert handshake failure” under
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
There are two ways. One way works with all versions of OpenSSL, the second works with OpenSSL 1.0.2 and below.
All OpenSSL
A straight
./config
uses/usr/local/ssl
as its location. Its the default location.The difference emerges when you install.
make install
andmake install_sw
both install into the location you select.<your install location>
is available inOPENSSLDIR
, which is defined in<openssl/opensslconf.h>
.OpenSSL 1.0.2 and below
A straight
./config
uses/usr/local/ssl
as its location. Its the default location.make install
andmake install_sw
both install into the location you select.<your install location>
is available inOPENSSLDIR
, which is defined in<openssl/opensslconf.h>
.IF you use
--openssldir
with OpenSSL 1.1.0, thenmake install_sw
does not honor your location.