mwarning / KadNode

P2P DNS with content key, crypto key and PKI support. DynDNS alternative.
MIT License
413 stars 75 forks source link

Announce with own CA certs #111

Open NnAsUnKnOwn opened 2 years ago

NnAsUnKnOwn commented 2 years ago

Hello Friends

I'm not sure if i'm doing wrong trying adding domains or subdomains with --announce on server side, the domain declared in create-cert.sh works fine but the announced domains don't.

Server Side (With Pub IP & 6881 open)

./create-cert.sh dominio.cl

$ kadnode --tls-server-cert /dominio.cl.crt,/dominio.cl.key --peerfile /peers.txt --peer bttracker.debian.org --announce xx.dominio.cl

$ kadnode list announcements
Announcements:
 query: dominio.cl
  id: 11aac6ed902d6ccfc196b22926abc9ce99d3b90d
  port: 6881
  refresh: in 11 min
  lifetime: entire runtime
 query: xx.dominio.cl
  id: a519ec1a01284a2b8856d540ee4661b9b12e8b16
  port: 6881
  refresh: in 11 min
  lifetime: entire runtime

Client Side (Behind ADSL) :

KadNode v2.3.0 ( bob cmd debug dns lpd natpmp nss tls upnp )

$ kadnode --tls-client-cert rootCA.pem --peer pubip --peer bttracker.debian.org --peerfile peers.txt --verbosity quiet

at this moment i can only open http://dominio.cl.p2p on the browser but not http://xx.dominio.cl.p2p

$ kadnode-ctl lookup dominio.cl
$ kadnode-ctl lookup xx.dominio.cl

$ kadnode list searches

Result buckets:
 query: 'dominio.cl'
  id: 11aac6ed902d6ccfc196b22926abc9ce99d3b90d
  done: false
  auth: tls
  started: 4m ago
   addr: PUBIP:6881
    state: AGAIN
  Found 1 results.
 query: 'xx.dominio.cl'
  id: a519ec1a01284a2b8856d540ee4661b9b12e8b16
  done: false
  auth: tls
  started: 30m ago
   addr: PUBIP:6881
    state: FAILED
  Found 1 results.
mwarning commented 2 years ago

hi there. This should work, but maybe there is a bug. Can you also try the current git master? Maybe this is a bug that has been fixed already.

I will try this kind of scenario as soon as I have time.

NnAsUnKnOwn commented 2 years ago

hi there. This should work, but maybe there is a bug. Can you also try the current git master? Maybe this is a bug that has been fixed already.

I will try this kind of scenario as soon as I have time.

i forgot to comment that the server side has version KadNode v2.2.5 ( bob cmd dns lpd tls ) on openwrt linux container, i dont know how to upgrade in that environment. The client side has the lastest master branch from git

mwarning commented 2 years ago

hi, sorry. I forgot about this issue. hopefully I have time next week.

NnAsUnKnOwn commented 2 years ago

hi, sorry. I forgot about this issue. hopefully I have time next week.

thanks friend