[tor-bugs] #3576 [Translations]: Figure out transifex-client with stunnel

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Jul 21 16:49:31 UTC 2011


#3576: Figure out transifex-client with stunnel
--------------------------+-------------------------------------------------
 Reporter:  runa          |          Owner:  runa
     Type:  defect        |         Status:  new 
 Priority:  normal        |      Milestone:      
Component:  Translations  |        Version:      
 Keywords:                |         Parent:      
   Points:                |   Actualpoints:      
--------------------------+-------------------------------------------------

Comment(by runa):

 I finally figured out how everything's supposed to work. In
 /etc/stunnel/stunnel.conf:

 {{{
 ; Protocol version (all, SSLv2, SSLv3, TLSv1)
 sslVersion = TLSv1

 ; Some security enhancements for UNIX systems - comment them out on Win32
 chroot = /var/lib/stunnel4/
 setuid = stunnel4
 setgid = stunnel4
 ; PID is created inside the chroot jail
 pid = /stunnel4.pid

 ; Use zlib for compression
 compression = zlib

 ; Authentication stuff
 CAfile =/etc/ssl/certs/Equifax_Secure_CA.pem
 verify = 2

 ; Use it for client mode
 client = yes

 ; Service-level configuration

 [transifex]
 accept = 5959
 connect = www.transifex.net:443
 TIMEOUTclose = 0
 }}}

 Once that's done, start stunnel4 and you're good to go.

 ''NOTE: I used verify=2 in stunnel.conf because I couldn't get verify=3 to
 work. I assume that we'll need to have the certificate installed locally
 for verify=3 to work. Note sure if this will cause a problem.''

 In ~/.transifexrc:

 {{{
 [http://127.0.0.1:5959]
 username = myusername
 token =
 password = mypassword
 hostname = http://127.0.0.1:5959
 }}}

 In .tx/config for each project (translation/projects/orbot/po/.tx/config
 used as an example below, the important bit is what goes under [main]):

 {{{
 [torproject.3-orbot-strings-pot]
 file_filter = <lang>/strings.po
 source_file = templates/strings.pot
 source_lang = en

 [main]
 host = http://127.0.0.1:5959
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3576#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list