Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Maybe Computer Science should be in the College of Theology. -- R. S. Barton


devel / comp.lang.tcl / Rest Api and TLS not working

SubjectAuthor
* Rest Api and TLS not workingRoderick
`* Re: Rest Api and TLS not workingRich
 `- Re: Rest Api and TLS not workingRoderick

1
Rest Api and TLS not working

<7da61de3-46ef-4f87-c1b1-35f6a5950987@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22321&group=comp.lang.tcl#22321

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.ip5f5bd3a3.dynamic.kabel-deutschland.de!not-for-mail
From: hruodr@gmail.com (Roderick)
Newsgroups: comp.lang.tcl
Subject: Rest Api and TLS not working
Date: Sun, 18 Jun 2023 12:29:02 +0000
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <7da61de3-46ef-4f87-c1b1-35f6a5950987@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
Injection-Info: gwaiyur.mb-net.net; posting-host="ip5f5bd3a3.dynamic.kabel-deutschland.de:95.91.211.163";
logging-data="1850850"; mail-complaints-to="abuse@open-news-network.org"
Cancel-Lock: sha1:+OOUCs5/AGsXHE23BQ6L9atBKnE=
X-User-ID: U2FsdGVkX1/9IePnRIb9yzGg9UvAGMq7iSMriD0QqUziUMBz12lcwQ==
 by: Roderick - Sun, 18 Jun 2023 12:29 UTC

Small experiment:

----------------------------------
# tclsh
% package require tls
1.7.18
% package require rest
1.5
% rest::get https://tcl.tk /
Unsupported URL type "https"
% rest::get http://tcl.tk /
[as expected]
---------------------------------

Why it does not work for https?

Thanks for any hint.

R.

Re: Rest Api and TLS not working

<u6mvta$1lm0k$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22322&group=comp.lang.tcl#22322

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Rest Api and TLS not working
Date: Sun, 18 Jun 2023 13:13:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <u6mvta$1lm0k$1@dont-email.me>
References: <7da61de3-46ef-4f87-c1b1-35f6a5950987@gmail.com>
Injection-Date: Sun, 18 Jun 2023 13:13:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7df487d86653efdfe0f7422f81d65f63";
logging-data="1759252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/689502nTTDe2S0G2Z8+6E"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19 (x86_64))
Cancel-Lock: sha1:KUgUZUofYgz4I3C3kQLVrw0yxwM=
 by: Rich - Sun, 18 Jun 2023 13:13 UTC

Roderick <hruodr@gmail.com> wrote:
>
> Small experiment:
>
> ----------------------------------
> # tclsh
> % package require tls
> 1.7.18
> % package require rest
> 1.5
> % rest::get https://tcl.tk /
> Unsupported URL type "https"
> % rest::get http://tcl.tk /
> [as expected]
> ---------------------------------
>
> Why it does not work for https?
>
> Thanks for any hint.

Perhaps because you did not follow the directions in the tls docs for
registering https as a valid protocol?

Note from: https://core.tcl-lang.org/tcltls/wiki/Documentation

HTTPS EXAMPLE
This example uses a sample server.pem provided with the TLS release,
courtesy of the OpenSSL project.

package require http
package require tls

http::register https 443 [list ::tls::socket -autoservername true -require true -cadir /etc/ssl/certs]

Re: Rest Api and TLS not working

<aa62a7f9-55f3-7c60-421b-922eb1dc5763@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22323&group=comp.lang.tcl#22323

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.ip5f5bd3a3.dynamic.kabel-deutschland.de!not-for-mail
From: hruodr@gmail.com (Roderick)
Newsgroups: comp.lang.tcl
Subject: Re: Rest Api and TLS not working
Date: Sun, 18 Jun 2023 13:30:02 +0000
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <aa62a7f9-55f3-7c60-421b-922eb1dc5763@gmail.com>
References: <7da61de3-46ef-4f87-c1b1-35f6a5950987@gmail.com> <u6mvta$1lm0k$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: gwaiyur.mb-net.net; posting-host="ip5f5bd3a3.dynamic.kabel-deutschland.de:95.91.211.163";
logging-data="1858044"; mail-complaints-to="abuse@open-news-network.org"
Cancel-Lock: sha1:J59as08XKYURY44i/30NiX/nM0I=
In-Reply-To: <u6mvta$1lm0k$1@dont-email.me>
X-User-ID: U2FsdGVkX182xEMsHlvPMTPuxkwu1RnGMUXm4sfb/HeAibaBgXKd0w==
 by: Roderick - Sun, 18 Jun 2023 13:30 UTC

On Sun, 18 Jun 2023, Rich wrote:

> Perhaps because you did not follow the directions in the tls docs for
> registering https as a valid protocol?
>
> Note from: https://core.tcl-lang.org/tcltls/wiki/Documentation
>
> HTTPS EXAMPLE

....

Thanks a lot, Rich! That works.

R.


devel / comp.lang.tcl / Rest Api and TLS not working

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor