sidebar
Some SSL operations need the ability to generate random numbers. Zend provides a PRNGD (Pseudo Random Number Generator Daemon) to fill this requirement, but it does not run by default. This article tells how to set it up to run.
Zend Server 6 or higher, running on any supported version of IBM i
Note: This document is using the current version of Zend Server (9.1.x or higher, including Zend Server 2018.0,x and 2019.0.x
If you are running Zend Server 6 - 8.5.x, please replace all references of ZENDPHP7 or zendph7 with ZENDSVR6 and zendsvr6
If you are running Zend Server 5.x, please replace all references to ZENDPHP7 or zendphp7 with ZENDSVR and zendsvr
To set the PRNGD to run whenever the ZENDPHP7 subsystem is started, configure it in the Autostart Job Settings.
Note that the menus were changed for version 8.5 of Zend Server, so the menus you have will depend on your version of Zend Server.
From the command line:
GO ZENDPHP7/ZSMENU
For version 8.5 and higher:
Use menu option "80. Configurations". Then use menu option "3. Autostart Job Settings".
For prior versions:
Use menu option "10. Autostart Job Settings"
The Autostart job settings will look something like this:
Find "Prngd daemon" on the list, and set it to 'Y', like this:
Settings you have for the other daemons may be different from what you see here. This is OK. Press enter to save the changes.
The next time the ZENDPHP7 subsystem is restarted, use wrkactjob to verify that the PRNGD is started. From the command line:
If the PRNGD daemon is active, you should see these two jobs:
You don't have to wait for your next restart to run the PRNGD. Like all the daemons, the PRNGD has it's own menu to start and stop the job. From the command line:
go zendphp7/zspmenu
Use option "1. Start PRNGD (ZS_STR_PRN) job". You can use the same wrkactjob command as noted above to verify that the ZS_STR_PRN jobs are active.