5.1.18 pre-release. https not working ?

78 views
Skip to first unread message

vpl

unread,
Nov 26, 2018, 3:16:07 AM11/26/18
to TiddlyWiki
Hi,

Testing this new feature of 5.1.18 I've followed the certificate creation procedure as described in the Tiddler "Using HTTPS".

My startup command is 
   node /root/tiddly-wiki-5.1.18/tiddlywiki.js /root/tiddly-wiki-5.1.18/wikis/vpl_ref_book_5.1.18 --listen username=test password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 host=0.0.0.0

I have no error when I start
  Serving on http://0.0.0.0:4011
  (press ctrl-C to exit)
  syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

When I access my site with https
https://<my-ip@>:4011
  I get the browser error
    " This site can't be reached xx.yy.zz.ww unexpectedly closed the connection."

When I access my site with http only
http://<my-ip@>:4011
This works fine with the user/passwd challenge .

Am I getting wrong somewhere ?

Thanks for your help

Regards
Vpl

Jeremy Ruston

unread,
Nov 26, 2018, 3:27:18 AM11/26/18
to tiddl...@googlegroups.com
Hi Vpl

My startup command is 
   node /root/tiddly-wiki-5.1.18/tiddlywiki.js /root/tiddly-wiki-5.1.18/wikis/vpl_ref_book_5.1.18 --listen username=test password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 host=0.0.0.0

The behaviour you're getting is as if TW isn't seeing the tlskey and tlscert parameters. The filenames are taken relative to the wikifolder root, so the above example would only work if the files were present in the top level of the wikifolder.

Best wishes

Jeremy.



I have no error when I start
  Serving on http://0.0.0.0:4011
  (press ctrl-C to exit)
  syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

When I access my site with https
https://<my-ip@>:4011
  I get the browser error
    " This site can't be reached xx.yy.zz.ww unexpectedly closed the connection."

When I access my site with http only
http://<my-ip@>:4011
This works fine with the user/passwd challenge .

Am I getting wrong somewhere ?

Thanks for your help

Regards
Vpl

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vpl

unread,
Nov 26, 2018, 7:56:04 AM11/26/18
to TiddlyWiki
Hi,

Thanks a lot for your quick answer

It seems that it is the case:

root@localhost:~/tiddly-wiki-5.1.18# ls
bin   contributing.md  editions         languages  licenses      plugins    server_vpl_ref.crt  tiddlywiki.js
boot  core             key_vpl_ref.pem  license    package.json  readme.md  themes              wikis

node tiddlywiki.js wikis/jazz_ref_book_5.1.18 --listen username=test password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 host=0.0.0.0

I've also checked the content of the .crt and .pem. They seem to contain a well formatted private key and certificate
 
Anyway to get acess to any log ? I could not find any log file in tiddlyWiki server.

Thanks

Jeremy Ruston

unread,
Nov 26, 2018, 8:50:56 AM11/26/18
to tiddl...@googlegroups.com
Hi VPL

It seems that it is the case:

That actually looks like the root of the TW5 repo folder. The "wiki folder" is the folder that contains your tiddlywiki.info file, in this case it looks like it should be "wikis/jazz_reff_book_5.1.18". So it is expecting the CRT and PEM file to be in that same directory

Anyway to get acess to any log ? I could not find any log file in tiddlyWiki server.

All logging is to stdout/stderr.

Best wishes

Jeremy

vpl

unread,
Nov 26, 2018, 9:49:04 AM11/26/18
to TiddlyWiki
Hi,

I've moved back the 2 files into the wiki folder (who contains the tiddywiki.info).

root@localhost:~/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18# ll
total 28
drwxr-xr-x 4 root root 4096 Nov 26 14:38 ./
drwxr-xr-x 3 root root 4096 Nov 26 09:24 ../
drwxr-xr-x 4 root root 4096 Nov 26 14:00 audio/
-rw-r--r-- 1 root root 1704 Nov 22 16:25 key_vpl_ref.pem
-rw-r--r-- 1 root root 1159 Nov 22 16:27 server_vpl_ref.crt
drwxr-xr-x 2 root root 4096 Nov 26 14:01 tiddlers/
-rw-r--r-- 1 root root 1625 Nov 22 14:57 tiddlywiki.info
root@localhost:~/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18# pwd
/root/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18

Then I started the tiddywiki from the /root/tiddly-wiki-5.1.18 where tiddywiki is installed.
root@localhost:~/tiddly-wiki-5.1.18# node tiddlywiki.js wikis/jazz_ref_book_5.1.18 --listen username=test password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 host=0.0.0.0
(press ctrl-C to exit)
 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
 filesystem: Saved file /root/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18/tiddlers/$__StoryList.tid

Same problem. Cannot access it through HTTPS. 
The stdout/err do not give me any other clue. 

I'm going to explore if my cloud provider prevent https on other port than 443 ...?

Reply all
Reply to author
Forward
0 new messages