0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windowsのbatで複合化暗号化GPGコマンドでどうしてもパスレーズをきかれてしまう時の対処

Last updated at Posted at 2020-09-11

・前提条件
パワーシェルが使える環境
OS:Windows Server2008R2以降 or Windows7以降

・事象
Windows Server2012で、batを用いてGPGコマンドを実装したところ、あらゆる記事を参考にしても
必ずパスフレーズを聞かれてしまい、自動化できなかったのでその時の対処法をメモ

・対処法
bat内でパワーシェルコマンドを実行することでパスフレーズをきかれなくなった。
Powershell -command "cho [パスフレーズ] | gpg --batch --pinentry-mode loopback --passphrase-fd 0 --decrypt-files --no-secmem-warning [復号対象ファイルのフルパス]"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?