Well i generated a keypair with openssl
openssl genrsa -des3 -out _private.pem 1024
openssl rsa -pubout -in _private.pem -out public.pem
P
In my experience, LockBox 3 needs a PKCS#1 public key when working with OpenSSL generated keys. You must convert the public key to PKCS#1 before Lockbox3 can load it. (OpenSSL generates a PKCS#8 key). Use the RSAPublicKey keyword.
openssl rsa -pubin -in yourpublickey -RSAPublicKey_out -out publicpkcs1
https://www.openssl.org/docs/apps/rsa.html
http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=298&display=print
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]);