<p>I hope someone will be able to answer my question.</p>

<p>I have Subversion set up, served by Apache2+SSL, doing web development.</p>

<p>I want a post-commit hook that runs svn update on my testing server, so when someone commits, it will automatically update the testing site. The hook doesn't work because the certificate is a self generated one and it's not trusted.</p>

<p>I've tried to accept (p)ermanently, but it doesn't. </p>

<p>Any ideas?</p>

You didn't say what platform your testing server is running, but if it's a Windows box, then you need to add the certificate to your testing server's certificate store. The following technet articles might be of some use:
Certificate stores: Public Key
A Step-by-Step Guide to Advanced Certificate Management