#author("2024-01-25T09:03:23+09:00","default:nobuoki","nobuoki")
#author("2024-01-26T16:03:08+09:00","default:nobuoki","nobuoki")
* 基本 [#kd1fb63c]

有名なやつ

[[curl: (35) error:0A000152:SSL routines::unsafe legacy renegotiation disabled - Stack Overflow>https://stackoverflow.com/questions/75763525/curl-35-error0a000152ssl-routinesunsafe-legacy-renegotiation-disabled]]

/etc/ssl/openssl.cnf の書き換えをしたくない場合に、curl を関数でラップしてしまう案

#prism(bash){{{
$ type curl
curl is a function
curl ()
{
    OPENSSL_CONF=<(cat /etc/ssl/openssl.cnf ; echo Options = UnsafeLegacyRenegotiation) command curl "$@"
}
}}}

* 応用 [#ke3f51b0]

#prism(bash){{{
$ svn update
Updating '.':
svn: E170013: Unable to connect to a repository at URL 'https://example.com/svn/2023_repo'
svn: E120171: Error running context: An error occurred during SSL communication
}}}

それなら svn もラップ関数を・・・というのを繰り返したくないので、

#prism(bash){{{
$ type unsafe
unsafe is a function
unsafe ()
{
    OPENSSL_CONF=<(cat /etc/ssl/openssl.cnf ; echo Options = UnsafeLegacyRenegotiation) command "$@"
}
}}}

という関数を定義して

  unsafe curl ...

とか

  unsafe svn ...

とか

  unsafe wget ...

とかとかやるのが良いかもしれません

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS