From nobody@FreeBSD.org  Mon Jun 24 20:40:31 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 7F7ADCD8
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2013 20:40:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 7233D1EC6
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2013 20:40:31 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5OKeV8a013865
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2013 20:40:31 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5OKeVXN013856;
	Mon, 24 Jun 2013 20:40:31 GMT
	(envelope-from nobody)
Message-Id: <201306242040.r5OKeVXN013856@oldred.freebsd.org>
Date: Mon, 24 Jun 2013 20:40:31 GMT
From: Lothar Braun <lothar@lobraun.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/gatling does not work with TLS in default installation
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179939
>Category:       ports
>Synopsis:       www/gatling does not work with TLS in default installation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tmseck
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 20:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon Jun 24 20:50:16 UTC 2013
>Originator:     Lothar Braun
>Release:        FreeBSD 9.1-RELEASE
>Organization:
>Environment:
FreeBSD horst-root 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The gatling webserver does not work in its default configuration if TLS is enabled, throwing messages like:

Jun 24 22:26:51 horst-root gatling[57153]: accept 7 XXX.XXX.XXX.XXX 50018 1 https
Jun 24 22:26:51 horst-root gatling[57153]: ssl_protocol_error 7
Jun 24 22:26:51 horst-root gatling[57153]: close/readerr 7

This is due to the fact that /usr/local/etc/rc.d/gatling starting gating with the option -c (chroot). TLS support requires access to /dev/urandom to work properly 
>How-To-Repeat:
Install gatling. Create a server.pem certificate by running "make cert" from the source (or generate a pem file by hand). Install the pem file at $gatling_root/server.pem. Start gatling and connect to the HTTPs port. 
>Fix:
Mount the devfs in the chroot in the init script

mkdir -p $gatling_root/dev
mount -t devfs devfs $gatling_root/dev

before starting tlsgating

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tmseck 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jun 24 20:50:15 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179939 
>Unformatted:
