Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.2

Request #18956 Add support for --trust-server-cert switch
Submitted: 2011-11-04 23:59 UTC
From: finewolf Assigned: mrook
Status: Closed Package: VersionControl_SVN (version 0.4.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 0.5.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 26 + 14 = ?

 
 [2011-11-04 23:59 UTC] finewolf (Andrew Moore)
Description: ------------ Self explanatory... Add support for the --trust-server-cert present since 1.6. This is extremely important if you access https:// repository with self-signed certificates. I had to modify 0.4.0 manually but I would rather have this switch supported in the next version. Test script: --------------- // This fails if the repository is hosted on a self-signed https domain $svn = VersionControl_SVN::factory('log', $options); // Define any switches and aguments we may need $switches = array ( 'username' => 'UserName', 'password' => 'Pass', 'no-auth-cache' => true, 'verbose' => true ); $args = array ($this->repoPath); if ($output = $svn->run($args, $switches)) { return $this->fixArray($output); } else { if (count($errs = $svnstack->getErrors())) { foreach ($errs as $err) { $logger = &SiteLog::get('svn'); $logger->log($err['message'], PEAR_LOG_WARNING); } } return false; } Actual result: -------------- svn: E175002: OPTIONS of 'https://example.com/repo': Server certificate verification failed: issuer is not trusted (https://example.com)

Comments

 [2011-11-07 18:24 UTC] mrook (Michiel Rook)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mrook -Roadmap Versions: +Roadmap Versions: 0.4.1
 [2011-11-08 01:22 UTC] mrook (Michiel Rook)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.