Python エラー対処: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsec
概要
pysftp利用としたらgmp5以上にしてくれと怒られている。
pysftpを利用するのに必要なparamiko、
そのparamikoに必要なpycryptoがエラー出力している。
ToDo
gmp5 インストール
python リビルド
pycrypto アンインストール&インストール
手順
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gmp バージョン確認 | |
rpm -qa |grep gmp | |
gmp-4.1.4-10.el5 | |
gmp-4.1.4-10.el5 | |
gmp-devel-4.1.4-10.el5 | |
gmp-devel-4.1.4-10.el5 | |
# モジュール置き場で gmp-5系インストール(今回は5.1.1) | |
cd /usr/local/src/ | |
wget ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.1.tar.bz2 | |
tar jxf gmp-5.1.1.tar.bz2 | |
cd gmp-5.1.1 | |
# ソースチェック & Makefile生成 | |
./configure | |
# ソースからプログラムをコンパイルしてビルド | |
make | |
# チェック | |
make check | |
# コンパイルしてインストール | |
make install | |
# 依存関係更新 | |
/sbin/ldconfig | |
# Python リビルド | |
cd /usr/local/src/Python-2.7.6 | |
./configure | |
make | |
make install | |
# 依存関係更新 | |
/sbin/ldconfig | |
# pycryptoをインストールし直し | |
pip uninstall pycrypto | |
pip install pycrypto |
以上
Python エラー対処: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsec
https://kenzo0107.github.io/2015/02/16/2015-02-17-python-error-about-powmlnsecurewarning/