Comments (4)
Installing openssl
gem by default searches the same paths used when your Ruby was installed. Your Ruby 3.0.3 seems to be using the OpenSSL 1.0.1i (which is a very, very old release with known vulnerabilities - I'd upgrade it now), which is no longer supported by the latest openssl
gem release, hence the first error.
Fedora's OpenSSL 3.0.9 is in /usr
. Does gem install openssl -- --with-openssl-dir=/usr
work?
from openssl.
In your case, I assume that you installed Ruby 3.0.3 via RVM when the openssl-devel
RPM veresion was 1.0.1i in the past, then you upgraded Fedora to new versions, and now the openssl-devel
RPM version is 3.0.9. That means perhaps you don't need the --with-openssl-dir
option now.
from openssl.
Solved the issue by installing Ruby 3.2.3 which supports OpenSSL 3, which is the OpenSSL version installed in my Fedora 38 server.
I used this command to install ruby:
rvm install 3.2.3
The problem was that Ruby versions below 3.1 do not support OpenSSL 3 according to rbenv/ruby-build#1940 (comment)
from openssl.
Found out a similar issue #686. It seems that the header files of my rvm ruby installation are OpenSSL 1.0.1
which is different from my system-wide OpenSSL version.
$ grep OPENSSL_VERSION /home/deploy/.rvm/usr/include/openssl/opensslv.h
#define OPENSSL_VERSION_NUMBER 0x1000109fL
#define OPENSSL_VERSION_TEXT "OpenSSL 1.0.1i-fips 6 Aug 2014"
#define OPENSSL_VERSION_TEXT "OpenSSL 1.0.1i 6 Aug 2014"
#define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT
$ grep OPENSSL_VERSION /usr/include/openssl/opensslv.h
# define OPENSSL_VERSION_MAJOR 3
# define OPENSSL_VERSION_MINOR 0
# define OPENSSL_VERSION_PATCH 9
...
It seems that I need to reinstall ruby with something like rvm reinstall 3.0.3 --with-openssl-dir=OpenSSL3-0-9-Directory
. But I am not sure what the value for --with-openssl-dir
should be.
from openssl.
Related Issues (20)
- macos-latest truffeeruby-head: test_basic_response_response_operations failing HOT 3
- truffleruby-head 24.0.0-dev: Failing to compile dependant stringio gem. HOT 14
- OpenSSL::PKey::EC.new(nil).generate_key fails with OpenSSL::PKey::PKeyError HOT 6
- OpenSSL 3.2.0 - sessions, time, signed vs unsigned, failure with negative session timeout values HOT 6
- OpenSSL::SSL::SSLContext.new returns SSL_CTX_new: library has no ciphers HOT 6
- Respect system wide minimum TLS version HOT 2
- windows-latest 3.3 case failing with "OpenSSL::Provider::ProviderError: Failed to load legacy provider: (null) (name=legacy)" HOT 8
- OpenSSL::PKey::PKey subclass for EVP_PKEY_RSA_PSS HOT 4
- OpenSSL udate 3.2.1 for CVE-2023-6129 HOT 3
- OpenSSL 3 | Providers | Support broader range of URI schemes for loading keys HOT 3
- OpenSSL 3 support for loading engine keys HOT 3
- OpenSSL version 3.3.0-dev: OpenSSL::ASN1::ASN1Error: utctime/generalizedtime is too short HOT 7
- OpenSSL::ASN1.decode doesn't correctly parse UTCTime or GeneralizedTime with fractional seconds or a timezone
- remove file check to support proxied SSL connection HOT 5
- When decrypted with a different private key, `OpenSSL::PKey::RSAError` does not occur HOT 2
- Upcoming OpenSSL Webinar: Writing Your First OpenSSL Application
- Invalid CSR versions set in regress tests HOT 2
- OpenSSL::SSL::SSLError: SSL_write: unsupported method HOT 4
- Can we please cut a 3.3.0 release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openssl.