基本

有名なやつ

curl: (35) error:0A000152:SSL routines::unsafe legacy renegotiation disabled - Stack Overflow

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

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

応用

$ 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

openssl を使っているものは大抵これでいける

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

都度こんな事するくらいなら /etc/ssl/openssl.cnf 書き換えた方が効率良いかも


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS