On 1/10/2019 3:50 PM, Don Green wrote:
I suspect that I:
(a) may be misusing plt-web-server; or
(b) have not actually installed my server-cert.pem properly even though
the verification operation indicates a successful installation:
openssl verify -CApath /etc/ssl/certs server-cert.pem
returns:
server-cert.pem: OK
;or
(c) may have some other problem.
---------------------------------------------
From: .../collects/DG/programs/processorX/URL/proc/proc-url/proc-url.ss
When I run plt-web-server from a terminal, at a $ prompt, in my application directory:
$ plt-web-server --ssl

I get the message:

tcp-listen: listen failed
  port number: 443
  system error: Address already in use; errno=98
  context...:
   .../more-scheme.rkt:261:28
/usr/share/racket/pkgs/compatibility-lib/mzlib/kw.rkt:468:41: run-server

Or
When I run plt-web-server from a terminal, at a # prompt, in my application directory:
# plt-web-server --ssl

I get no feedback, and eventually close the terminal.
---------------------------------------------
Q. I believe the port: 443 is a root level port, therefor I suspect I am expected to run plt-web-server as root.
   That is the only reason I am trying to run it from a # prompt.
   I have also tried running: $plt-web-server -p 8000 --ssl
   because I believe the 8000 port is not a root level port.
   Comments?

There's nothing special about port 443.  You should be able to use it as an ordinary user.

Racket isn't complaining about the certificate ... yet ... you are not getting that far.  Is there another HTTP server already running?  Also the error message says "the address is in use" ... did you specify a particular IP address or "any" address (#f)?


Q. Can I run 'plt-web-server --ssl' from a terminal opened to any directory because it will, by default, refer to
.../default-web-root/configuration-table.rkt?
configuration-table.rkt contains line: (default-indices "index.html" "index.htm"), so I'll be happy to see that file displayed in my firefox browser.

Q. Do I have to make a firefox-specific configuration regarding the server-cert.pem file?

If you actually connect, the browser will tell you that you have connected to a site with an unknown/private certificate and request you to authorize the connection.


Q. I understand how to run my application as a servlet using racket -t <file.rkt>.
   When I get one of these running properly:
   $plt-web-server --ssl
   or
   $plt-web-server [-f <filename> -p <port> -a <ip-address> --ssl]
   where do I specify <my-app-file.rkt>?  ...that I used when calling servlet with 'racket -t <file.rkt>'.    Seems that plt-web-server only runs either the default configuration-table.rkt or another configuration-table.rkt from
   another location if I specify it in the -f <filename> argument.

Thanks
Don.

Sorry, that I can't help you with: I don't use the web-server application - I write my own programs that use  serve/servlet internally.

George

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to