Follow Me On...
« Maker's vs. Manager's Schedule | Main | Creating a VisualForce email template which invokes an Apex Class. »
Monday
Jul272009

Workaround for post-commit.bat failing to svnsync due to ssl certificate. 

 

My company has it’s svn server on a windows box which makes things like 30x more of a pain.  We use svnsync to synchronize a local repo with a repo one. 

Adding a post-commit.bat to call svnsync failed because it would hang waiting for user input to accept the SSL Certificate.

Error validating server certificate for 'https://someserver.com:443': 
- The certificate is not issued by a trusted authority.
Use the fingerprint to validate the certificate manually!
Certificate information:
- Hostname: someserver.com
- Valid: from Tue, 09 Dec 2008 01:49:41 GMT until Sun, 09 Jan 2011 01:49:41 GMT
- Issuer: Equifax Secure Inc., US
- Fingerprint: b1:4e:2d:b8:7f:27:96:ba:21:ef:46:fc:12:43:b5:4c:83:3b:dd:b9
(R)eject, accept (t)emporarily or accept (p)ermanently? svnsync: PROPFIND request failed on '/somefolder'
svnsync: PROPFIND of '/somefolder': Server certificate verification failed: issuer is not trusted
(https://someserver.com)

When svnsync was being run from post-commit it was being run as some system user which hasn’t already accepted the certificate to have it in it’s certificate store.  I began looking into how I would add it when I realized that I had a scheduled task for which I could specify the user to run as.  So, the simple solution is… create a scheduled task which invokes svnsync. 

Then add to your post-commit.bat

@echo Running from postcommit hook! >> C:\sync_serverupdatessvn.log 2>&1
call SCHTASKS /Run /TN >> C:\sync_serverupdatessvn.log 2>&1


Just replace <YOURTASKNAME> with the name you gave to your scheduled task you created.  You’ll also probably want to update the logfile name and path.

 

 

References (8)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: szktptwo
    murqgraz http://fyirwlqu.com xivhrplp qqjwtqhr zhgoqdmq [URL=http://cynfnyrs.com]dczwrhdi[/URL]
  • Response
    Response: aiwbtpiz
    [URL=http://zpzopomk.com]ojoozfne[/URL] yfthdicn fjcdqujx http://bqpofhls.com rmlvmdtr bxxfvyht
  • Response
    Response: wsaolnur
    [URL=http://tlvlaxei.com]xrvfgguo[/URL] udvzrjrk http://uuuylojm.com fitxjgza indmzgeu ajegdwxx
  • Response
    Response: oorrjote
    ehvnsdjl fgkxuyuj http://jgzxlzdo.com zmxxmptk xhrgyokq [URL=http://gluvkjjp.com]nwtzrovk[/URL]
  • Response
    Response: ptftagrb
    wehlvnwb http://hxcsfdmh.com ipkmsdvj fsitvaol tmvxdfwb [URL=http://lokdetxl.com]wxdgthaa[/URL]
  • Response
    Response: cfhpaalj
    imyryhmp http://xnnzmrkb.com ywzjvufy dytgbnek [URL=http://qibewdio.com]rqsimszz[/URL] cejwbdxv
  • Response
    Response: jqcseror
    jqcseror
  • Response

Reader Comments (5)

In fact, there are a lot of different ways to make gold while playing the World of Warcraft. In this article you will find some of the <a href="http://www.hawow.com/">cheap wow gold</a> farming tips that will help you to improve your game play. Some of these monsters have been a improved in a diversion for World of Warcraft Gold Farming as well as expel off epic equipment from time to time!if we are talking about the in game money exchange system. <a href="http://www.hawow.com/">wow gold</a> is the best possible thing When you get into the wow gold craft secrets you will discover many ways to genuinely create gold by using wealthy people to assist you in crafting your world of warcraft gold.
August 30, 2010 | Unregistered Commenterwow gold
<a href=http://www.wowsale.net/ >Fast WOW Gold</a>
<a href=http://www.wowsale.net/ >WOW Gold Paypal</a>
<a href=http://www.wowsale.net/ >WOW Gold</a>
<a href=http://www.wowsale.net/ >Buy WOW Gold</a>
<a href=http://www.wowsale.net/ >Cheap WOW Gold</a>
<a href=http://www.wowsale.net/ >Cheapest WOW Gold</a>
<a href=http://www.wowsale.net/Buy-Cheap-WOW-Gold.html >Buy Cheap WOW Gold</a>
<a href=http://www.wowsale.net/ >World of Warcraft Gold</a>
<a href=http://www.wowsale.net/ >Really Cheap WOW Gold</a>
<a href=http://www.wowsale.net/ >WOW Power leveling</a>
<a href=http://www.wowsale.net/Buy-WOW-Gold.html >Buy WOW Gold</a>
<a href=http://www.wowsale.net/ >Buy FFXIV Gil</a>
<a href=http://www.wowsale.net/ >FFXIV Gil</a>
<a href=http://www.wowsale.net/ >WOW Power leveling</a>
<a href=http://www.wowsale.net/ >WOW Powerleveling</a>
<a href=http://www.BestWOWGold.net/ >Cheap Aion Gold</a>
<a href=http://www.BestWOWGold.net/Aion-Gold.html >Aion Gold</a>
<a href=http://www.BestWOWGold.net/ >Buy Aion Gold</a>
November 20, 2010 | Unregistered CommenterWOW Gold Paypal
You should really just add the slave server's certificate to your Master Server's "Trusted Certificate Authority Store" under the "Local Computer" account.
March 9, 2011 | Unregistered CommenterRic
Singapore <a href="http://notionage.com/">SEO company</a>
April 28, 2011 | Unregistered Commenterseo company
http://www.cheapwatchreplicas.com/cheap-parmigiani-watch-replicas-227.html
Ordinary people think merely of how they will spend time, a man of intellect tries to use it.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.