[hunchentoot-devel] Running Hunchentoot with ssl

Brian brian at liberatinginsight.com
Fri Jan 4 18:39:56 UTC 2008


Try the following:

1. Create the private key file

    openssl genrsa -out privkey.pem 2048

2. Then create the certificate using the private key

    openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095

3. (hunchentoot::start-server :port 443
                                   
                                    :ssl-certificate-file "cacert.pem"
                                    :ssl-privatekey-file "privkey.pem")

 


Andrea Chiumenti wrote:
> Brian,
> of course I had already given a look to HOWTOs. ;-p
>
> On Jan 4, 2008 7:11 PM, Brian <brian at liberatinginsight.com 
> <mailto:brian at liberatinginsight.com>> wrote:
>
>     I always use the How To's found on the OpenSSL website which you can
>     find here
>
>     http://www.openssl.org/docs/HOWTO/
>
>
>
>     Andrea Chiumenti wrote:
>     > Hello,
>     > I'm trying to figure out how to run Hunchentoot with SSL but I'm
>     > getting lost.
>     > I'm using it under a gentoo linux installation.
>     > I think the problem is with my ssl certificete file.
>     >
>     > to create it I use `openssl genrsa -out File.pem 1024` but since
>     > (defparameter *x* (hunchentoot:start-server :port 4443
>     > :ssl-certificate-file #P"/home/kiuma/File.pem")) does not start the
>     > server.
>     >
>     > Does anybody know how to create a test certificate file with openssl
>     > or another tool ?
>     >
>     > Thanks in advance,
>     > kiuma
>     >
>     ------------------------------------------------------------------------
>
>     >
>     > _______________________________________________
>     > tbnl-devel site list
>     > tbnl-devel at common-lisp.net <mailto:tbnl-devel at common-lisp.net>
>     > http://common-lisp.net/mailman/listinfo/tbnl-devel
>
>     _______________________________________________
>     tbnl-devel site list
>     tbnl-devel at common-lisp.net <mailto:tbnl-devel at common-lisp.net>
>     http://common-lisp.net/mailman/listinfo/tbnl-devel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel




More information about the Tbnl-devel mailing list