4

I need to be able to deploy new instances of an application from a subversion repository. This is accomplished by running shell_exec() from a PHP script.

However, Subversion won't let me check out the repository, instead throwing this error:

svn: OPTIONS of 'https://www.example.org/svn/repos/project/trunk': Server certificate verification failed: issuer is not trusted (https://www.example.org)

How can I get Subversion to let me check out the code and ignore the certificate error? If I check it out from an SSH session it prompts and and caches the certificate and works fine the second time. When run via the PHP script, however, it never works.

1 Answer 1

6

From the svn help file under the global options section svn help checkout

  --non-interactive        : do no interactive prompting
  --trust-server-cert      : accept unknown SSL server certificates without
                             prompting (but only with '--non-interactive')

should do what you need.

1
  • FWIW, this only works since Subversion 1.6. Some of my servers are still on Ubuntu 8.04 and so they are stuck for now on Subversion 1.4.6.
    – daveadams
    May 1, 2011 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.