I’m currently trying to write an internal application to be able to deploy our projects to acceptance and production servers with a single click.
We are using phing to accomplish this.
At the moment I’m having difficulty checking out (or doing an svn export) the project. I use the following command:
<exec command="svn checkout ${svn.host} ${svn.exportdir} --force --username server --password <password>" />
on a normal command line this works perfectly, however i get prompted to accept a certificate because the host uses https. Problem is there seems to be no parameter to automatically accept a certificate.
the –trust-server-cert doesn’t help either, becase the certificate is rejected due to a hostname mismatch, where the parameter only bypasses a “CA is unknown”-error.
Any ideas on how I can check out (or export, update, …) the project?
Do a
wgeton the svn servers HTTPS adress and accept the certificate permanently.And then press p to accept the cert.
I also added some hints to the PHP documentation about the problems with certificates:
Simply call
on your command line and accept the cert.
There could be still a problem when the user which executes the Phing command is not root, then you have to execute this command as the user which runs the Phing command: