Yubico Forum
https://forum.yubico.com/

PHP validation server problems (aesEncrypt)
https://forum.yubico.com/viewtopic.php?f=5&t=219
Page 1 of 1

Author:  peku [ Thu Jan 08, 2009 4:49 pm ]
Post subject:  PHP validation server problems (aesEncrypt)

Hello,

I'm trying to get the PHP validation server running but always run into this problem when running install.php (on both Debian and Windows):

Code:
root@test:/var/www/yubico/yubiphpbase# php install.php

* Connected to DB successfully
Data schema seems OK, now insert initial data
Insert root client

Fatal error: Call to undefined function aesEncrypt() in /var/www/yubico/yubiphpbase/install.php on line 33


Same goes for utils.php

Code:
root@test:/var/www/yubico/yubiphpbase# php utils.php

API Key: iet79XguwVM0wCtR80WGHuxccpY=


Fatal error: Call to undefined function aesEncrypt() in /var/www/yubico/yubiphpbase/utils.php on line 24


I've been trying to find where the aesEncrypt() function is defined but cannot find it, is it some kind of PHP extension that I'm missing? Google came up short on this...

Author:  network-marvels [ Fri Jan 09, 2009 3:33 pm ]
Post subject:  Re: PHP validation server problems (aesEncrypt)

To resolve this issue please download and deploy the yubico-php-lib ("http://code.google.com/p/yubico-php-lib/") library in your codebase.

The yubico-php-lib library has code for aesEncrypt() function.

Hope this helps.

Author:  peku [ Mon Jan 12, 2009 9:11 am ]
Post subject:  Re: PHP validation server problems (aesEncrypt)

OK now I found it, I had the 'yubico-php-lib' package but had downloaded the .zip package (yubico-php-lib-0.1.3.zip) and the AES128.php in that package did NOT include the aesEncrypt() and aesDecrypt() functions. Then I tried the SVN version and now I got it working, thanks for the tip.

Author:  %%USERNAME%% [ Wed Feb 11, 2009 9:06 pm ]
Post subject:  Re: PHP validation server problems (aesEncrypt)

I ran into the exact same problem.
The zip-download link should be removed from the google-project, as it just confuses some cats.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/