[plt-scheme] HTTPS and the PLT Web Server

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Nov 11 18:39:50 EST 2008

Most of the updates to the PLT Web Server today were internal
refactorings to make it easier to make some of the bigger changes down
the pipe. However, one change is public, and very nice.

It is often desirable to run an HTTPS server with your application.
The PLT Web Server has always supported this, because its TCP
implementation is parameterized. However, it was not nearly easy
enough to actually use that flexibility, unless you were a Scheme
warrior, like Eli Barzilay, who used it to implement the

For that reason I've integrated running the PLT Web Server in HTTPS
into the plt-web-server command-line tool:

plt-web-server --ssl

And you've got yourself an HTTPS server on port 443. You can override that too:

plt-web-server --ssl -p 8443

The only thing you need to do is create a private-key.pem and
server-cert.pem in the directory you run the PLT Web Server in, and
you're good to go. Instructions to create those are included in the
FAQ on HTTPS. (Or at least will be when the docs regenerated tonight.)


Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.