generateRSAKeys() not found

Hi Friends, I am using lucee 5 and executing below script but found that generateRSAKeys() not found even generateSecretKey is working fine, kindly suggest me how to resolve this issue.

Could you please share your test code and lucee version.

this is the code I am using:

<cfscript>
key=generateRSAKeys();
dump(key);
raw="Susi Sorglos f?hnte Ihr Haar";
enc=encrypt(raw,key.private,"rsa");
dec=decrypt(enc,key.public,"rsa");
dump(enc);
dump(dec);
enc=encrypt(raw,key.public,"rsa");
dec=decrypt(enc,key.private,"rsa");
dump(enc);
dump(dec);
</cfscript>

I am using lucee in docker image
lucee version is 5
command used to pull lucee in docker - docker pull lucee/lucee5

1 Like

this is the code I am using:

<cfscript>
key=generateRSAKeys();
dump(key);
raw="Susi Sorglos f?hnte Ihr Haar";
enc=encrypt(raw,key.private,"rsa");
dec=decrypt(enc,key.public,"rsa");
dump(enc);
dump(dec);
enc=encrypt(raw,key.public,"rsa");
dec=decrypt(enc,key.private,"rsa");
dump(enc);
dump(dec);
</cfscript>

I am using lucee in docker image
lucee version is 5.0.1.85
version name - Velvet
command used to pull lucee in docker - docker pull lucee/lucee5

Hi cfmitrah any suggestion for this

I didn’t think generateRSAKeys() was in lucee 5.0… What happens when you use a later version, i.e. 5.3?

is this available in 5.2 or 5.2-nginx version because in docker only 5.2 is the latest version.
if generateRSAKeys() is not available in 5.2 version then is they any other way of doing this in these versions ?

https://hub.docker.com/r/lucee/lucee

That lists lots of versions, I’m on my mobile at the moment so can’t check, but it should have the 5.3 releases… Somewhere in its tag spaghetti…

The latest release should be coming soon… Announcing Lucee 5.3.2 Final (5.3.2.77)

1 Like

requesting you to please check once, when you will get time because when I am trying to pull 5.3 image using command docker pull lucee/lucee53:latest its showing that no image available.

docker pull lucee/lucee:5.3

Is currently pulling a version of something…

Having run it, it appears to be 5.3.1.102

I ran your code in Lucee-5.3.2.77 , It doesn’t throw any error for me. But in lucee 5.0.85, It throws an error as like you said: “No matching function [GENERATERSAKEYS] found”.

According to this https://docs.lucee.org/guides/Lucee5.3-kabang.html it’s a 5.3 enhancement

Yeah you’re right. I forgot to mentions this.

It will be released tomorrow, along with an announcement explaining the tags. Please bear with us for another 24 hours :slight_smile:

1 Like

The Docker builds are up :slight_smile:

Thanks All is working now :slightly_smiling_face:

1 Like