Terotrificy
Veteran OT User
Hi, i'm struggling with my RSA Key on my server (peonso/tibialegacyserver (https://github.com/peonso/tibialegacyserver))
I generated my own RSA Key following this tutorial: RSA Keys Generator (https://otland.net/threads/rsa-keys-generator.266103/#post-2645772)
My otserv.ccp in my otserver looks like this (the commited lines):
*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.
and my client const.lua looks like this (the commited lines):
*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.
When i tried to connect with my new compiled server and my otclient with new RSA Key, i just got the error (ERROR 2) and can't connect.
I also tried logging with my new compiled server and the old RSA key in my client just to check what would happen and the server went down...(i'm worried if it can happen in a future when ppl try to connect to my server, right now i'm testing it in local).
I know by fact the hexas are converted correctly because i made it manually in this website: Hexadecimal to Decimal Converter (https://www.rapidtables.com/convert/number/hex-to-decimal.html)
and checked the conversion of the hexas was right in this website: ASN.1 JavaScript decoder (https://lapo.it/asn1js/#)
As it was said in the tutorial i used, in p i put prime1, in q i put prime2, in d i put privateExponent and in my client-sided const.lua i put the modulus, although i'm not sure i pasted it correctly there. I hope someone can guide me please, thanks!
Pd: I attached the RSA key generated if anyone wanna check. (ofc if i success in doing it, i will generate a new one).
I generated my own RSA Key following this tutorial: RSA Keys Generator (https://otland.net/threads/rsa-keys-generator.266103/#post-2645772)
My otserv.ccp in my otserver looks like this (the commited lines):
*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.
and my client const.lua looks like this (the commited lines):
*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.
When i tried to connect with my new compiled server and my otclient with new RSA Key, i just got the error (ERROR 2) and can't connect.
I also tried logging with my new compiled server and the old RSA key in my client just to check what would happen and the server went down...(i'm worried if it can happen in a future when ppl try to connect to my server, right now i'm testing it in local).
I know by fact the hexas are converted correctly because i made it manually in this website: Hexadecimal to Decimal Converter (https://www.rapidtables.com/convert/number/hex-to-decimal.html)
and checked the conversion of the hexas was right in this website: ASN.1 JavaScript decoder (https://lapo.it/asn1js/#)
As it was said in the tutorial i used, in p i put prime1, in q i put prime2, in d i put privateExponent and in my client-sided const.lua i put the modulus, although i'm not sure i pasted it correctly there. I hope someone can guide me please, thanks!
Pd: I attached the RSA key generated if anyone wanna check. (ofc if i success in doing it, i will generate a new one).
Attachments
-
RSA_Key.txt2.4 KB · Views: 22 · VirusTotal