site5/lumberg — pull request #67 by ruyrocha (2014-02-19 16:09:30+00:00)
Title: Generate certificate signing requests

Generate certificate signing requests through Whostmgr.

Cpanel is a :trollface::
```
[2014-02-19 08:52:11 -0500] warn [xml-api] Missing required parameter: countryName. at /usr/local/cpanel/Whostmgr/SSL.pm line 189
Whostmgr::SSL::validate_cert_parameters(HASH(0x2c96cc0)) called at /usr/local/cpanel/Whostmgr/SSL.pm line 229
Whostmgr::SSL::generate('organizationalUnitName', undef, 'pass', x, 'user', 'lumberg', 'stateOrProvinceName', undef, 'organizationName', undef, '
emailAddress', undef, 'localityName', undef, 'xemail', '', 'domains', undef, 'countryName', undef, 'noemail', 1) called at /usr/local/cpanel/Whostmgr/XMLUI/SS
L.pm line 37
Whostmgr::XMLUI::SSL::generate('organizationalUnitName', 'Test', 'pass', x, 'user', 'lumberg', 'stateOrProvinceName', 'PR', 'organizationName', '
Site5', 'emailAddress', 'a@aaa.tld', 'localityName', 'None', 'domains', 'lumberg-test.com', 'xemail', '', 'noemail', 1, 'countryName', 'BR') called
at whostmgr/bin/xml-api line 1744
main::__ANON__(HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3508
main::runapp_v0(HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3558
main::runapp('generatessl', HASH(0x2aac981f2220), HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3432
```

Got another error while passing _country_ instead of _countryName_ to _generatessl_:
```
[2014-02-19 08:54:14 -0500] warn [xml-api] Missing required parameter: domains. at /usr/local/cpanel/Whostmgr/SSL.pm line 189
Whostmgr::SSL::validate_cert_parameters(HASH(0x2c96cc0)) called at /usr/local/cpanel/Whostmgr/SSL.pm line 229
Whostmgr::SSL::generate('organizationalUnitName', undef, 'domains', undef, 'pass', x, 'xemail', '', 'emailAddress', undef, 'user', 'lumberg', 'organizationName', undef, 'countryName', 'br', 'stateOrProvinceName', undef, 'localityName', undef, 'noemail', 1) called at /usr/local/cpanel/Whostmgr/XMLUI/SSL.pm line 37
Whostmgr::XMLUI::SSL::generate('organizationalUnitName', 'Test', 'domains', 'lumberg-test.com', 'pass', x, 'xemail', '', 'emailAddress', 'a@aaa.tld', 'user', 'lumberg', 'country', 'br', 'organizationName', 'WWWH', 'stateOrProvinceName', 'SC', 'localityName', 'San Jose', 'noemail', 1) called at whostmgr/bin/xml-api line 1744
main::__ANON__(HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3508
main::runapp_v0(HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3558
main::runapp('generatessl', HASH(0x2b11ea573200), HASH(0x299d3b0)) called at whostmgr/bin/xml-api line 3432
```
:heart_eyes: Cpanel :heart_eyes: