Before downloading, authentication can be done with wget and a cookie. Build a script.
Example:
read -p "Enter username: " login read -p "Enter password: " pass ua="Mozilla/5.0 (Windows NT 6.1; rv:45.9) Gecko/20100101 Firefox/45.9" wget --user="$login" --password='$pass' -U "$ua" --save-cookies=cp_cookies "https://cryptopro.ru/" && rm index.html wget --load-cookies=cp_cookies --keep-session-cookies -U "$ua" "https://cryptopro.ru/sites/default/files/private/csp/50/12417/linux-amd64.tgz" wget --load-cookies=cp_cookies --keep-session-cookies -U "$ua" "https://cryptopro.ru/products/cades/plugin/get_2_0"
Pinned Comments
Rogach commented on 2019-04-22 20:47 (UTC) (edited on 2024-11-22 09:21 (UTC) by Rogach)
Ru
Тиражирование и распространение СКЗИ является деятельностью лицензируемой ФСБ России. Каждый экземпляр СКЗИ должен иметь индивидуальный номер учета. Т.е. анонимный доступ невозможен.
AUR не выполняет оба этих пункта. Поэтому перед выполнением makepkg необходимо скачивать СКЗИ самостоятельно с сайта производителя. Ссылка:
Данный PKGBUILD старается следовать последней не-сертифицированной версии CSP (не RC).
En
This PKGBUILD does not automatically download CSP archive because accessing it requires logging in. Please download the archive manually and place alongside the PKGBUILD before building. Link:
This PKGBUILD tracks the latest not-certified version of CSP (not RC).