Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Schnaaf opened this issue May 28, 2016 · 3 comments

Comments

@Schnaaf
Copy link

Schnaaf commented May 28, 2016

--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
Copy link
Contributor

slaff commented Jun 2, 2016

.. --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 pushed a commit to zend-patterns/ZendServerWebApiModule that referenced this issue Jun 2, 2016
@slaff
Copy link
Contributor

slaff commented Jun 2, 2016

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

@Schnaaf
Copy link
Author

Schnaaf commented Jun 2, 2016

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

@Schnaaf Schnaaf closed this as completed Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants