% /usr/bin/openssl version
LibreSSL 3.3.6
% printf 1234 | /usr/bin/openssl pkeyutl -encrypt -inkey public_key.pem -pubin -in /dev/stdin -out lalapriv.pwd
unable to load Private Key
140704549073024:error:09FFF06C:PEM routines:CRYPTO_internal:no start line
-inkey filename|uri
The input key, by default it should be a private key.
-pubin
By default a private key is read from the key input. With this option a public key is read instead. If the input contains no public key but a private key, its public part is used.
openssl —version
, а есть openssl version
, и она ожидает именно закрытый ключ в —inkey. Почему? Например, из имени файла открытого ключа не может вывести имя файла закрытого % printf 1234 | openssl pkeyutl -encrypt -inkey private_key.pem -pubin -in /dev/stdin -out out.pwd
user at Mac in ~/test_dir_for_openssl
% rm lala.pwd
user at Mac in ~/test_dir_for_openssl
% printf 1234 | openssl pkeyutl -encrypt -inkey public_key.pem -pubin -in /dev/stdin -out out.pwd
% which openssl
/usr/local/bin/openssl
ещё батарейку будет жрать как не в себя
тиринг на видео будет (но это неточно)
Libreoffice бонусом :-D
>что из коробки дров нет
их вообще нет — и не будет