3rd Mon
SecItemImport
OpenSSL の PEM_write_RSAPublicKey を使用して作った public key の pem ファイルを SecItemImport で読み込むと -25257 "Unknown format in import."
逆に次のものは問題なく読める
◎KeyChain で作った鍵を pem で書き出したもの。
◎PEM_write_RSAPrivateKey で書き出した private key の pem から
openssl rsa -pubout
で public key を作り直したもの。
◎SecKeyGeneratePair で作成したキーを SecItemExport で書き出したもの。
原因は時間のある時に調査予定。
posted by
Saturn on Mon 3 Sep 2012 at 12:10 with 0 comments