lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It takes a standard X509 cert string(i.e. the PEM with both public and private key concat together ) as an optional second parameter. You can browse lxyssl.c to see that. it really is a very thin layer on top of lxyssl.

--- On Thu, 5/27/10, Valerio Schiavoni <valerio.schiavoni@gmail.com> wrote:

From: Valerio Schiavoni <valerio.schiavoni@gmail.com>
Subject: Re: lxyssl, aes and rsa questions
To: "Lua list" <lua@bazar2.conectiva.com.br>
Date: Thursday, May 27, 2010, 10:40 PM

Hi,


On Thu, May 27, 2010 at 4:25 PM, gary ng <garyng2000@yahoo.com> wrote:
oh, for rsa, it is using an embedded test key by default(mainly for testing purpose). you need to create your own.

do you have an example of how to this, or at least how the key is expected to be like (which format) ?


thanks alot
valerio

 



RSA-question)
the code snippet shows some RSA related code:
a=lxyssl.rsasign('abc')
assert(lxyssl.rsaverify('abc', a))
a=lxyssl.rsaencrypt('abc')
assert(lxyssl.rsadecrypt(a)=='abc')