Results 1 to 4 of 4

Thread: PHP client-side and "Error validating server certificat

  1. #1

    PHP client-side and "Error validating server certificat

    Hi,

    My configuration:

    * svn repository installed on a linux server. an https access is opened(https://myserver/svn)
    * an Intranet server running on Microsoft IIS6.
    * a php script running from my Microsoft IIS6 server.

    when I execute a svn command (svn log https://myserver/svn --username myuser --password mypassword) through a php script I have a server response:

    -----------------------------------------------------------------------------------
    Error validating server certificate for 'https://myserver:443':
    - The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
    - Hostname: myserver
    - Valid: from Thu, 26 Apr 2007 13:12:25 GMT until Fri, 25 Apr 2008 13:12:25 GMT
    - Issuer: xxxxxxxxx
    - Fingerprint: xxxxx:3dxxxxxxx:faxxxxxxx
    (R)eject, accept (t)emporarily or accept (p)ermanently? svn: PROPFIND request failed on '/svn'
    svn: PROPFIND of '/svn': Server certificate verification failed: issuer is not trusted (https://myserver)
    ------------------------------------------------------------------------------

    The certificate is installed on my IIS server as a "Trusted Root Certification".

    I used the Windows command console on my IIS server and I accepted (p)ermanently the certificate. Then, using the Windows command console, I can execute the same command without prompt and any error.
    The same command through php script still returns the error message below.

    Any idea?

    Thanks a lot.

    A svn's newbie.

  2. #2
    When you execute the command yourself, you're doing so under different credentials from when the PHP script runs in IIS. It has to be accepted for each user individually.

  3. #3
    Quote Originally Posted by andyl
    When you execute the command yourself, you're doing so under different credentials from when the PHP script runs in IIS. It has to be accepted for each user individually.
    my iis web site run as "Integrated Authentication Window". So when I browse on my php script I have a prompt to specify a valid windows account. Does php script run under this account? (php runs as ISAPI extension)

    when I use the Windows command console I'm logged on my IIS server with the same account and I accepted the certificate for this user.

    where can I find some information about php, IIS and credential?

    thanks a lot for your help

  4. #4
    I too got same error through php code when getting logs from svn.

    if you got any solution to it please reply me as it will be much helpful for me.

    thanks in advance.

    -Avinash

Similar Threads

  1. Server-side vs client-side merge
    By stevea in forum Version Control Practices
    Replies: 2
    Last Post: 01-29-2008, 07:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •