zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

sslCertificateKeyPath is mandatory parameter for zs-client.phar vhostValidateTemplate #88

Closed Schnaaf closed 8 years ago

Schnaaf commented 8 years ago

--sslCertificateKeyPath is mandatory parameter for zs-client.phar vhostValidateTemplate. I think this is an error. In the case of --sslEnabled=false there is no SSL public key file to specify. So the sslCertificateKeyPath should be optional

php /usr/local/bin/zs-client.phar vhostValidateTemplate

ZendServerWebApi Client version 1.2
Zend Server Client v1.0

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ZendServerWebApi
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* vhostValidateTemplate --name= --port= --template= [--sslEnabled=] [--sslCertificatePath=] --sslCertificateKeyPath [--sslChainPath=] [--target=] [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=] [--output-format=]

Validate the existence of the supplied SSL certificate, key and chain provided during creation or edit of a virtual host.
  --name                       Name of virtual host.
  --port                       Port of virtual host.
  --template                   Template text to be validated. Or an absolute path to a local template vhost file.
  --sslEnabled                 Indicates if the provided template to be used is SSL template.
  --sslCertificatePath         File path to locate the SSL certificate file.
  --sslCertificateKeyPath      File path to locate the SSL public key file.
  --sslCertificateChainPath    Full file path to the SSL chain file.
  --output-format              Output format. Default is "xml", but you can use json or kv(for key-value)

-------------------------------------------------------------------
slaff commented 8 years ago

.. --sslCertificateKeyPath is mandatory parameter for zs-client.phar ...

I am not sure if that is the case. Will check it later this week and fix it if needed.

slaff commented 8 years ago

@Schnaaf can you check the latest version of the tool and test it?

Schnaaf commented 8 years ago

I can confirm that the sslCertificateKeyPath parameter is optional now. Thanks!