Tcl Source Code

View Ticket
Login
Ticket UUID: 777877
Title: Better https support
Type: RFE Created on: 2003-07-26 00:02:14
Submitter: dkf Assigned to: patthoyts
Subsystem: 29. http Package Severity: Minor
Priority: 5 Medium Last modified: 2026-11-13 11:18:45
Status: Closed Closed by: serhiy.storchaka
Resolution: Out of Date Closed on: 2026-11-13 11:18:43
Version: None
Description:
If I use the TLS package to enhance the http package
with support for the HTTPS protocol, I can download
pages from secure sites just fine.  It's great! 
However, I do not see how to retrieve information about
the certificate that the server used for the
connection; in a security-sensitive context this sort
of thing might well be vital or at least very
interesting.  So could there please be a way of getting
this information from the array that the token (as
returned from geturl) refers to?
User Comments:
hobbs added on 2003-07-26 23:58:43:
Logged In: YES 
user_id=72656

while better https support would be nice ... I am not the 
expert on how to do anything about it.

dkf added on 2003-07-27 21:04:35:
Logged In: YES 
user_id=79902

All I really want is the information that I can get via
tls::status as documented at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/tls/tls/tls.htm?rev=HEAD&content-type=text/html
I can't get it at the moment (with a synchronous
http::geturl call) because the FD is gone by the time I see
the state array.

What I want is for there to be some kind of way that the TLS
extension (or any other suitably cooperative package - this
should be a plug-in interface of course) could be told to
provide this info which could then be stashed in the state
array somewhere (perhaps under a transportInfo key as a
key-value list?)  That would be more than sufficient. 
Adapting the TLS extension to provide the info then would be
a separate (non-Tcl) FRQ.  :^)

dkf added on 2009-04-16 05:13:21:
Assigning to Pat as he's been thinking more about http improvements than I have, and I've got too many FRQs

kjnash added on 2022-05-10 19:44:19:
This facility is provided by the TclTLS package, through the "-command callback" option of ::tls::socket.  Providing a suitable callback command is outside the scope of either TclTLS or http, and should be implemented in Tcllib.

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

serhiy.storchaka added on 2026-11-13 11:18:45:

Closing per kjnash's comment above.