You are using valid licenses ?
As far as I know you'll get this error if the port or credentials you specify are incorrect. The user specified must be a global admin - use the default admin account created when ePO was installed - and ensure that both the name and password are correct - they are case-sensitive - as is the RunDllGenCerts switch. So if your server was called ePOServer1, port was 8443, your user was admin and the password was Pa55W0rd! then the command line would be:
Rundll32.exe ahsetup.dll RunDllGenCerts ePOServer1 8443 admin Pa55W0rd! "D:\EPO\APACHE2\CONF\SSL.CRT"
my license was not good. following the change in the certificate was created correctly.
thank you very much