IRC log of #maemo for Monday, 2018-10-29

*** Kabouik has joined #maemo00:08
*** dafox has quit IRC00:25
*** Pali has quit IRC00:42
*** Kabouik has quit IRC00:47
*** Kabouik has joined #maemo00:48
*** Kabouik_ has joined #maemo00:56
*** Kabouik has quit IRC00:57
*** Konsieur has joined #maemo00:58
*** Kabouik_ has quit IRC01:01
*** Kilroo has joined #maemo01:29
*** hurrian has quit IRC01:32
*** hurrian_ has joined #maemo01:32
*** Konsieur has quit IRC01:32
*** atk has quit IRC02:00
*** atk has joined #maemo02:00
*** atk has quit IRC02:00
*** atk has joined #maemo02:00
*** florian has quit IRC02:18
*** infobot has quit IRC02:19
*** infobot has joined #maemo04:18
*** ChanServ sets mode: +v infobot04:18
*** tm has quit IRC05:07
*** l_bratch has quit IRC05:09
*** juiceme has joined #maemo05:21
*** juiceme is now known as Guest5087705:21
*** Guest14302 has quit IRC05:22
*** tm has joined #maemo05:26
*** BitEvil has joined #maemo05:29
*** SpeedEvil is now known as Guest9717505:29
*** Guest97175 has quit IRC05:31
*** lukedashjr has joined #maemo05:45
*** luke-jr has quit IRC05:46
*** lukedashjr is now known as luke-jr05:50
*** Kilroo has quit IRC06:36
*** pagurus` has joined #maemo06:51
*** pagurus has quit IRC06:54
*** lukedashjr has joined #maemo06:55
*** luke-jr has quit IRC06:56
*** lukedashjr is now known as luke-jr07:00
MaxdamantusOkay, so luckily that certificate expired at Apr 24 14:09:34 2009.07:16
Maxdamantusbut if maemo has a clock set to a time before that, any SSL connection could be intercepted.07:17
MaxdamantusPresumably it's unused, unless there's something else in maemo that doesn't check the issuer expiry.07:18
MaxdamantusAh, actually, it's not used by microb. I guess it just tests the expiry time before checking that a certificate is in the store (since I was getting an "expired" error before setting my clock back)07:20
*** spiiroin has quit IRC07:28
*** spiiroin has joined #maemo08:18
*** mavhc has quit IRC08:59
*** hurrian_ has quit IRC09:00
*** mavhc has joined #maemo09:06
*** l_bratch has joined #maemo09:07
*** Venemo has joined #maemo09:20
*** dafox has joined #maemo09:21
*** dafox has quit IRC09:49
*** chfoo has quit IRC09:56
*** chfoo has joined #maemo09:56
*** hurrian has joined #maemo09:57
*** jskarvad has joined #maemo10:03
*** florian_kc has joined #maemo10:11
*** florian_kc has quit IRC10:17
*** hurrian has quit IRC10:22
*** r00t|home has quit IRC10:43
*** hurrian has joined #maemo10:48
*** Venemo has quit IRC11:09
*** ceene has quit IRC11:18
*** ceene has joined #maemo11:18
*** florian_kc has joined #maemo11:25
*** florian_kc is now known as florian11:29
*** Konsieur has joined #maemo11:44
*** Konsieur has quit IRC11:47
*** Kabouik has joined #maemo11:48
*** Kabouik has quit IRC12:10
MaxdamantusDamn, turns out Opera Mobile doesn't use SNI.12:23
MaxdamantusI thought I saw the host it was connecting to before.12:23
Maxdamantusmicrob uses it though.12:24
bencohSNI support sounds quite mandatory to me nowadays ...12:24
MaxdamantusAnyway, this is what I've made so far: https://gist.github.com/Maxdamantus/e32ab94dbc5d9d43298428400020620e12:25
bencohMaxdamantus: silly question, but why not use one of the already available small-footprint proxies?12:25
Maxdamantusbencoh: such as?12:25
bencohtinyproxy or polipo12:26
Maxdamantustinyproxy is an HTTP proxy12:26
MaxdamantusNothing to do with SSL12:26
bencoh(tinyproxy might not have proper support for ssl, I don't quite remember)12:26
* Maxdamantus looks at polipo12:26
MaxdamantusAgain sounds like an HTTP proxy.12:26
bencohTinyproxy is a light-weight HTTP/HTTPS proxy daemon12:26
MaxdamantusThat's a fairly misleading description.12:27
KotCzarnyyou can have https proxy without any ssl12:27
KotCzarnyjust copy data as is12:27
KotCzarnyi do it in my own proxy12:27
KotCzarnyyou need a proxy that does ssl management if you want to interact in any way12:27
Wizzupa thread for every socket?12:28
MaxdamantusYes, that's the intention of my program above.12:28
MaxdamantusWizzup: for now, yes.12:28
Wizzupwell, looks lke you're having fun :)12:28
MaxdamantusI don't expect to be maintaining a large number of connections.12:28
bencohyou might be right about tinyproxy12:28
*** eMHa has quit IRC12:28
WizzupI'd personally do it in go - since it links statically with the latest tls support and does all of this multiplexing easily, but I guess there's no point to suggesting it :P12:28
Maxdamantusalso note that the program above is agnostic about a particular protocol.12:29
Wizzupsure, just tls + sni12:29
bencohpolipo caches content, so it probably handles ssl properly, though12:29
bencohMaxdamantus: you can't really be protocol-agnostic when it comes to starttls12:29
bencohand you'll eventually have to handle that as well12:29
bencoh(same goes for SNI, actually)12:30
Maxdamantusbencoh: well, it assumes that the entire socket is encapsulated in TLS.12:30
Maxdamantusotherwise it's protocol agnostic.12:30
Maxdamantus(though atm it doesn't forward ALPN)12:30
Maxdamantusalso regarding proxying, opera mobile doesn't seem to have the option to use a proxy.12:31
Maxdamantusand I'm guessing if microb/firefox has that option, it will still want to use SSL over the proxy.12:31
Wizzupwhat if you set the env variables?12:31
KotCzarnyin the worst case you have iptables12:32
Maxdamantus(ie, it'd rely on something like `CONNECT google.com:443`)12:32
WizzupMaxdamantus: yes, indeed, it will do it's own tls over the proxy.12:32
MaxdamantusWizzup: right, in which case polipo won't help, unless polipo actually does the funky TLS stuff that my program does.12:32
WizzupMaxdamantus: but you can intercept it12:32
Wizzupyes12:32
Maxdamantus(funky stuff = generating/signing certificates on the fly)12:32
Wizzupwhy do you need to do that, though?12:33
Wizzupif you have your own CA, you can just install a wildcard cert, no?12:33
MaxdamantusBecause if the browser makes a request to "google.com", the certificate used needs to have CN=google.com12:33
Wizzup(plus, generating keys + certs takes a -long- time)12:33
WizzupMaxdamantus: wildcard should work?12:33
MaxdamantusTLD wildcards are illegal.12:34
Wizzuphow do you think mitm proxies work?12:34
Maxdamantusie, *.com and * are illegal.12:34
MaxdamantusWizzup: they have to do what I do.12:34
Wizzupreally?12:34
Wizzupmhm12:34
MaxdamantusWizzup: that's almost certainly what "mitmproxy" does.12:34
Wizzupwell, I guess you can re-use the same key12:34
Wizzupthen it doesn't take long12:34
Maxdamantus(mitmproxy being some debugging utility written in Python, seems unsuitable for running locally on N900)12:34
MaxdamantusYes, I use the same key.12:34
Maxdamantusbut have to generate different certificates.12:35
Wizzupmaybe I'll do it in go for fun some time12:35
MaxdamantusThe "CAKEY.pem" passed in to my program is meant to be the key for the CA certificate, and it also uses that same key for all generated certificates.12:36
MaxdamantusIt could theoretically take in a second key for the latter, but that seems unnecessary.12:37
KotCzarnygenerating certs is not a big problem if you just need it for few frequent sites12:37
Wizzupyou could use transparent socks proxy if n900 supports it12:37
Wizzup(with iptables)12:37
Maxdamantusand when/if I get it working properly, I'd rather just keep the key in memory instead of storing it on the filesystem, so don't want to generate too many keys on boot.12:37
WizzupMaxdamantus: just generate a new intermediate?12:38
MaxdamantusWizzup: there's no intermediate.12:38
Wizzupthen generate one ;)12:38
MaxdamantusHow does an intermediate help?12:38
Wizzupif you want to keep the keys in memory...12:38
Wizzupeh, whatever :)12:39
MaxdamantusThe intermediate would need to be signed by the trusted certificate's key.12:39
siceloopera mobile *can* use a proxy. it's in about:opera, or some such12:39
siceloopera:config12:40
MaxdamantusOh, cool.12:40
MaxdamantusOkay, guess I'll adapt it to use that tomorrow.12:41
MaxdamantusThat should solve the lacking SNI issue too.12:41
Maxdamantussince whatever it sends to the proxy should have the hostname.12:41
Maxdamantusand yeah, that treats the proxy as an HTTP proxy and just uses "CONNECT github.com:443 HTTP/1.112:44
Maxdamantus"12:44
Maxdamantuseh, spaces.12:44
*** jskarvad has quit IRC12:45
*** jskarvad has joined #maemo12:46
bencohhmm, mitmproxy looks pretty handy for android app REing12:47
*** BitEvil is now known as SpeedEvil12:49
Maxdamantusalso simplifies getting the browser to actually connect to the proxy.12:53
Maxdamantuswas intending on adding netfilter rules that did something like forward all :443 traffic to the proxy, unless the source is some particular address, which the proxy would bind to for outgoing connections.12:54
Maxdamantusbtw, https://github.com/kr/mitm might already be a sufficient Go implementation.12:58
MaxdamantusHave to be careful with all these things though, given how explicit you have to be in OpenSSL to actually get validation to work.13:01
Maxdamantuseg, checking that the certificate is valid and checking that the CN in the certificate matches what you're connecting to are different things.13:03
Maxdamantuseven though the hostname is specified in two places already (`BIO_set_conn_hostname` (for DNS lookup) and `SSL_set_tlsextl_host_name` (SNI))13:05
*** eMHa has joined #maemo13:10
*** mavhc has quit IRC13:19
*** mavhc has joined #maemo13:24
*** Venemo has joined #maemo13:42
*** troulouliou_div2 has joined #maemo14:11
*** spiiroin has quit IRC15:24
*** ceene has quit IRC15:38
*** ceene has joined #maemo15:45
*** spiiroin has joined #maemo15:52
*** keithzg_ has quit IRC15:56
*** keithzg_ has joined #maemo15:56
DocScrutinizer05BYEBYE Merkel16:59
DocScrutinizer05hurry up a bit! don't forget to take you rocks with you16:59
KotCzarnydont worry, refugees are there to stay17:00
DocScrutinizer05I don't care too much about any refugees17:01
KotCzarnywell, not refugees, hostile tools of national identity disintegration17:01
KotCzarnyalso, 2021? is that a joke?17:10
KotCzarny2 more years of the fun17:13
DocScrutinizer05alas you got a few points there17:29
* DocScrutinizer05 is tempted to run the streets shouting "HURRY UP! GET LOST!"17:30
DocScrutinizer05"I WONT SURVIVE ANOTHER 2 YEARS OF THAT NARCOTIC"17:30
DocScrutinizer05there's hope she can't pull off the chancellorship 2 years as lame duck17:34
*** troulouliou_div2 has quit IRC18:18
*** rysiek|pl has joined #maemo18:38
*** DocScrutinizer05 is now known as up-quark18:40
*** up-quark is now known as DocScrutinizer0518:40
*** dafox has joined #maemo18:43
*** dafox has quit IRC19:30
*** Pali has joined #maemo19:38
*** dafox has joined #maemo19:39
*** eMHa has quit IRC19:49
*** dafox has quit IRC19:54
*** ced117 has quit IRC19:56
*** ced117 has joined #maemo19:58
*** ced117 has joined #maemo19:58
*** eMHa has joined #maemo20:17
*** florian_kc has joined #maemo20:40
*** florian has quit IRC20:41
*** florian_kc is now known as florian20:41
*** florian_kc has joined #maemo20:41
*** jskarvad has quit IRC21:17
*** florian has quit IRC21:20
*** halftux has joined #maemo21:48
halftuxdoes somebody know where I could find these automated generated maemo diff files to debian source packages?21:51
sicelowhich ones?21:52
*** florian has joined #maemo21:55
halftuxlibsoup2.421:55
halftuxfrom original maemo source21:56
halftuxthere was an url were you could generate diff files from debian to maemo but I forget21:57
sicelono idea. :-/22:12
*** Kabouik has joined #maemo23:07
*** halftux has quit IRC23:10
*** M4rtinK has joined #maemo23:48
*** Venemo has joined #maemo23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!