1
2

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 5 years have passed since last update.

passphraseの有無を手入力無しで判別する

Last updated at Posted at 2014-08-26
openssl rsa -text -passin pass:[passphrase] -in [/path/to.pem] && echo success

手入力で判別するだけなら、↓等で聞かれるかどうかだけで良いのだけど自動でやりたかった。おそらくこんな需要はあまり無いと思うけど…

openssl rsa -text  -in [/path/to.pem]

参考

opensslコマンドtips — ありえるえりあ http://dev.ariel-networks.com/column/tech/openssl/view

このページでもman見ても「パスワード/password」と書いてあってpassphraseでも大丈夫かが心配だったがどうやら同じ事で良いらしい。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?