Author Topic: Private Certificates for using SVN over HTTPS  (Read 5839 times)

0 Members and 1 Guest are viewing this topic.

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Private Certificates for using SVN over HTTPS
« on: July 12, 2014, 01:30:54 am »
 Being very keen to get Version control going ( and please Altium, SVN is about 3 years behind Git, but anyway thats a different rant ),  I set up a SVN server.   Because we all work remotely, and SVN over SSH means keys and stuff,  I really wanted to use HTTPS..

Seems that you can't use private no signed certificates.. Doesn't even prompt you to allow you.

I'm going to see if i can install private certificates, hopefully its using the system stuff, and not something proprietary to Altium,
On a quest to find increasingly complicated ways to blink things
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Private Certificates for using SVN over HTTPS
« Reply #1 on: July 12, 2014, 07:33:19 am »
If you install the cert, via your web browser it will work.

However, other stuff breaks.
On a quest to find increasingly complicated ways to blink things
 

Offline jeremy

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Re: Private Certificates for using SVN over HTTPS
« Reply #2 on: July 12, 2014, 07:46:23 am »
Perhaps try using the open source svn command line utility? That way you can ensure the ssl stuff is set up properly.

Another option could be to VPN to the server and just have a plain http server running on localhost only. Vpns are well supported on the OS level nowadays
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Private Certificates for using SVN over HTTPS
« Reply #3 on: July 12, 2014, 09:26:22 am »
Being very keen to get Version control going ( and please Altium, SVN is about 3 years behind Git, but anyway thats a different rant ),  I set up a SVN server.   Because we all work remotely, and SVN over SSH means keys and stuff,  I really wanted to use HTTPS..

Seems that you can't use private no signed certificates.. Doesn't even prompt you to allow you.

I'm going to see if i can install private certificates, hopefully its using the system stuff, and not something proprietary to Altium,
I don't see why jumping into what is current will make it better, also https will use ssl as well (well tls now but same difference)
On certificates, when the program process the certificate to validate it, the programmer can ignore different parameters like the time issued and expiration, common names and among those there is a ignore CA (certificate authority) This is what self-signed certificates do.

So if they programmed it to respect the CA so that the system knows it's that the data is really coming from and going to the right server, so if someone redirected you to another server to steal your data the handshake will fail (man in the middle attack). So they are really providing you with security so no external entity can steal your data.

So you might need to get a valid certificate from VeriSign or your preferred CA. Hmm seems like VeriSign was bought by Symantec.

Edit: or maybe there is a way to disable to check for the CA within SVN, not sure.

Edit: maybe this link will help
http://www.microhowto.info/howto/configure_subversion_to_trust_a_given_ssl_certificate.html

« Last Edit: July 12, 2014, 09:49:47 am by miguelvp »
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Private Certificates for using SVN over HTTPS
« Reply #4 on: July 13, 2014, 12:29:47 am »
Certificate issue is resolved.. You don't need to use a CA signed cert, you can use a self signed one.

Browse to the URL of the site with Internet Exploder running as administrator  ( https://yoursite.com ), you'll get a certificate error.    Click on the certificate and you'll be able to install it as a CA.      Once you've done that,  Altium ( which obviously is using some OS stuff rather than its own code, forutatly ), will trust that cert.     

My SVN server is running on Linux, Apache and SVN.. I had to create a new certificate for it, this is so the certificate name matches the host name.  All those things are easy.

However.. Now i've got a new problem, and its not authenticating properly..      Using SVN from the command line, it all works just fine... but that kind of defeats the purpose, of doing this..

Theres virtually no references in google to using SVN and Altium.

On a quest to find increasingly complicated ways to blink things
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Private Certificates for using SVN over HTTPS
« Reply #5 on: July 13, 2014, 12:30:49 am »
Oh, i've tried using both the suppled SVN, and using tortoise SVN.    My Server is running subversion 1.8.9
On a quest to find increasingly complicated ways to blink things
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf