Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|improve this answer
    
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 '11 at 12:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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