Lockbox 3 load public key not possible - stream reading error

后端 未结 2 1327
耶瑟儿~
耶瑟儿~ 2020-12-20 08:55

Well i generated a keypair with openssl

openssl genrsa -des3 -out _private.pem 1024

openssl rsa -pubout -in _private.pem -out public.pem

P

2条回答
  •  感情败类
    2020-12-20 09:42

    After loading the stream you should reset it to the beginning before handing it over to LoadKeysFromStream.

      //====Signatory1=====================
      Signatory1.Codec :=codecRSA;
      //===Load public key=============
      f.Position := 0;
      Signatory1.LoadKeysFromStream(f, [partPrivate]);
    

提交回复
热议问题