M
M
merlin-vrn2012-03-07 21:01:35
CVS
merlin-vrn, 2012-03-07 21:01:35

PyCharm and Subversion over HTTPS with client certificates?

Hello.

There is a bundle as described above: PyCharm 2.0.2 and Svn 1.6 via Apache HTTPD mod_dav and mod_dav_svn.

If I write something like svn co https:/ /server/path/to/repo in the console, it asks me for my certificate (it asks me to enter the path to the PKCS#12 file), the passphrase from it, then the HTTP name and password Basic Authentication on the server and then successfully pulls the working copy (including the svn:externals that are there). From the server's point of view it looks something like this:

11.22.33.44 - - [07/Mar/2012:21:52:36 +0400] "OPTIONS /messaging HTTP/1.1" 401 464
11.22.33.44 - merlin [07/Mar/2012 :21:52:41 +0400] "OPTIONS /messaging HTTP/1.1" 200 189
11.22.33.44 - merlin [07/Mar/2012:21:52:41 +0400] "PROPFIND /messaging HTTP/1.1" 207 649
. ..


If I try to access the same repository from PyCharm, first in the configuration (File->Settings->Version Control->Subversion) I click Edit Network Options and specify the paths to the certificates.
Then, VCS->Checkout from Version Control->Subversion opens the "SVN Repository Browser" window. I add the path to the repository, try to specify the branch I need, and they tell me: "svn: OPTIONS of /messaging: 403 Forbidden ( https://server )", and this appears in the server logs:

11.22.33.44 - - [07/ Mar/2012:21:04:54 +0400] "OPTIONS /messaging HTTP/1.1" 403 274

And that's it. Documentation _it is written that, in theory, PyCharm should have thrown out a window with a login and password for me; he doesn’t throw it out, apparently because the server answers him not with 401, but with 403. And why he answers with 403 is not clear (maybe because PyCharm doesn’t send him a certificate? After all, he didn’t ask me for a passphrase).

How would it be overcome?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question