Skip to content

Conversation

@rakuda-san-desu
Copy link
Contributor

@rakuda-san-desu rakuda-san-desu commented Dec 5, 2025

背景

bundle exec bin/c-search 実行時、openssl に関連するエラーが発生し、group_idが取得できなかった。

'OpenSSL::SSL::SSLSocket#connect_nonblock': SSL_connect returned=1 errno=0 peeraddr=3.169.5.37:443 state=error: certificate verify failed (unable to get certificate CRL) (OpenSSL::SSL::SSLError)

やったこと

  • システムとプロジェクトのバージョン不整合対策として openssl gem を追加
  • bundle install

確認したこと

bundle exec bin/c-search にURLを渡して実行した時、正常にgroup_idが取得できる

🔽 参考

$ bundle exec bin/c-search https://coderdojo-yame.connpass.com/

17099

# 八女(福岡県八女市)
- dojo_id: 347
name: connpass
group_id: 17099
url: https://coderdojo-yame.connpass.com/


エラー発生時と解決時のログ(詳細版)

# OpenSSL 3.5 系だと動く
$ openssl --version
OpenSSL 3.5.2 5 Aug 2025 (Library: OpenSSL 3.5.2 5 Aug 2025)

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
17055

$ brew upgrade openssl
...


# OpenSSL 3.6 系だと動かない
$ openssl --version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
/Users/yasulab/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in 'OpenSSL::SSL::SSLSocket#connect_nonblock': 
SSL_connect returned=1 errno=0 peeraddr=3.169.5.97:443
state=error: certificate verify failed (unable to get certificate CRL)
(OpenSSL::SSL::SSLError)
...


# 本 PR (#1768) を取り込むと OpenSSL 3.6 系でも動く
$ git pull origin main && bundle install
...

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
17055

@rakuda-san-desu rakuda-san-desu merged commit 158699c into main Dec 5, 2025
5 checks passed
@rakuda-san-desu rakuda-san-desu deleted the add-openassl-gem branch December 5, 2025 03:07
@rakuda-san-desu
Copy link
Contributor Author

こちら、一旦マージします🙏 cc/ @yasulab

@yasulab
Copy link
Member

yasulab commented Dec 5, 2025

@rakuda-san-desu OpenSSL のバージョンを更新し、自分の手元でも問題の再現を確認後、本 PR にある Gem 更新を取り込むことで以下の通り解決できることを確認しました! 早速のご対応ありがとうございます...!! (>人< )✨

# OpenSSL 3.5 系だと動く
$ openssl --version
OpenSSL 3.5.2 5 Aug 2025 (Library: OpenSSL 3.5.2 5 Aug 2025)

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
17055

$ brew upgrade openssl
...


# OpenSSL 3.6 系だと動かない
$ openssl --version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
/Users/yasulab/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in 'OpenSSL::SSL::SSLSocket#connect_nonblock': 
SSL_connect returned=1 errno=0 peeraddr=3.169.5.97:443
state=error: certificate verify failed (unable to get certificate CRL)
(OpenSSL::SSL::SSLError)
...


# 本 PR (#1768) を取り込むと OpenSSL 3.6 系でも動く
$ git pull origin main && bundle install
...

$ bin/c-search https://coderdojo-shin-osaka.connpass.com/
17055

@rakuda-san-desu
Copy link
Contributor Author

早速のご確認ありがとうございます🙏💖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants