SSL Library not Found

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

SSL Library not Found

Post by genie » Tue Jan 08, 2013 8:08 am

Need some help on SSL stuff... :|

So.. I have a decrypt command:

Code: Select all

decrypt tData32bytes using "aes256" with password tPassword
...but "the result" says "SSL library not found".

I know that "decrypt" command needs openSSL library to be installed. I don't know how to tell if I have it installed already..so I decided to download openssl from their website. Installed it as per installation instruction:

Code: Select all

  $ ./config
  $ make
  $ make test
  $ make install
..the installation then created /usr/local/ssl with stuffs inside.

On the Standalone application settings>General>Script Libraries, I selected "SSL & Encryption".

I built the app again, and I'm getting the same error "SSL library not found" on the decrypt command. LiveCode probably cannot read/see the SSL installed? My problem is, where do I need to install/place it or what do I need to do so that my app knows? :(

Thank you!


~Genie

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: SSL Library not Found

Post by Klaus » Tue Jan 08, 2013 1:10 pm

Hi Genie,

Livecode comes with its own SSL library "revsecurity.dll", but I doubt it will work with
any other downloaded DLL stuff out of the box.

This will be installed into the folder where the Livecode runtime exists by the standalonebuilder
and NOT in the subfolder "Externals". No idea what is wrong with your installation.


Best

Klaus

ThatOneGuy
Posts: 77
Joined: Fri Jan 04, 2013 9:57 am

Re: SSL Library not Found

Post by ThatOneGuy » Wed Jan 09, 2013 2:58 am

If you are getting that error in IDE, then you might need a re-install since it's missing libraries.
Otherwise, it's just a matter of setting it up correctly.

You can tell if the library is installed because it will be in the same directory as your program
when you save as standalone. There's no copying files needed. If it isn't there, you need to make
sure you set the standalone settings correctly.

If it's there, but isn't working, you can try setting the externals to your dll file manually 'on startup'.
Just look up "externals" in the rev dictionary. It should have an example in there for you. Set it to
the location of the dll in your application's directory.

If that doesn't work, then there is probably something wrong with your library for some reason.

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: SSL Library not Found

Post by genie » Wed Jan 09, 2013 8:58 am

Thanks Klaus!

Thanks ThatOneGuy!
ThatOneGuy wrote:You can tell if the library is installed because it will be in the same directory as your program
when you save as standalone. There's no copying files needed. If it isn't there, you need to make
sure you set the standalone settings correctly.
So...you mean:
If I have an app called "MyStandalone", I should be having both \MyStandalone\MyStandalone.app and \MyStandalone\**some_dll**?

Hmmm... I'm not seeing any other file that my app itself. Wondering what's wrong with my settings...
I already have 'SSL and Encryption' selected.


~Genie

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: SSL Library not Found

Post by shaosean » Wed Jan 09, 2013 10:15 am

On Mac OS X you will need to open the application package and there should be the externals in a folder.. I believe it is <app>/Contents/Externals

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: SSL Library not Found

Post by genie » Wed Jan 09, 2013 11:29 am

shaosean wrote:On Mac OS X you will need to open the application package and there should be the externals in a folder.. I believe it is <app>/Contents/Externals
Here's what I have inside my .app...I'm not seeing some Externals folder.


Image

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: SSL Library not Found

Post by Klaus » Wed Jan 09, 2013 12:23 pm

Hi genie,

on OS X the SSL features have beenn implemented directly into the engine and
therefore you will see NO extra BUNDLE and NO extra subfolder "Externals" for this!

On Windows, the "revsecurity.dll" must be in the SAME folder as the standalone/EXE!


Best

Klaus

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: SSL Library not Found

Post by genie » Thu Jan 10, 2013 7:08 am

I rechecked the decrypt command on the dictionary and it says--
Supported OS's: Mac, Windows, Linux.

I am building for mobile...and this is probably why it's not working. :(

Does anybody know how to do DECRYPT for iOS?


Thanks,
Genie

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: SSL Library not Found

Post by gpb01 » Thu Jan 10, 2013 9:22 am

genie wrote: ...
Does anybody know how to do DECRYPT for iOS? ...
You can use mergAES by Monte ... http://mergext.com/home/mergaes/

And be careful by the encription restriction imposed by Apple for App approval ... :(

Guglielmo

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: SSL Library not Found

Post by Klaus » Thu Jan 10, 2013 12:54 pm

genie wrote:...I am building for mobile...
We have some dedicated forums for MOBILE development (which noone ever seems to care about),
so it would be quite clever and save a lot of time if you would mention this in the first place when
posting HERE!

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: SSL Library not Found

Post by genie » Fri Jan 11, 2013 5:36 am

Klaus wrote:
genie wrote:...I am building for mobile...
We have some dedicated forums for MOBILE development (which noone ever seems to care about),
so it would be quite clever and save a lot of time if you would mention this in the first place when
posting HERE!
Sorry Klaus :(

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: SSL Library not Found

Post by genie » Fri Jan 11, 2013 6:34 am

gpb01 wrote:
genie wrote: ...
Does anybody know how to do DECRYPT for iOS? ...
You can use mergAES by Monte ... http://mergext.com/home/mergaes/

And be careful by the encription restriction imposed by Apple for App approval ... :(

Guglielmo
My bad. Looks like my client needs the encrypt-decrypt to be using AES-128 (not 256). Sorry.
Thanks Guglielmo, but mergAES is on 256 only... :(

Regards,
Genie

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: SSL Library not Found

Post by gpb01 » Fri Jan 11, 2013 7:39 am

genie wrote: My bad. Looks like my client needs the encrypt-decrypt to be using AES-128 (not 256). Sorry.
Thanks Guglielmo, but mergAES is on 256 only... :(
Regards,
Genie
So ... you can ask Monte to modify the mergAES to support both 128 and 256 AES or ... you can write your routine (... many C code samples are availables on the net) :)

Guglielmo

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: SSL Library not Found

Post by Simon » Fri Jan 11, 2013 1:52 pm

Going out on a limb here...
What if the client asked "I need you to download AES encrypted files and display them"?
Isn't that similar to saying "I need you to download and display files using https"?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: SSL Library not Found

Post by gpb01 » Mon Jan 14, 2013 7:36 am

genie wrote:
gpb01 wrote:
genie wrote: ...
Does anybody know how to do DECRYPT for iOS? ...
You can use mergAES by Monte ... http://mergext.com/home/mergaes/

And be careful by the encription restriction imposed by Apple for App approval ... :(

Guglielmo
My bad. Looks like my client needs the encrypt-decrypt to be using AES-128 (not 256). Sorry.
Thanks Guglielmo, but mergAES is on 256 only... :(

Regards,
Genie
Monte just release a new version including 128 bit AES ... :)

Guglielmo

Post Reply