Building Web Server(2) in BSD
Open SSL Installation
the next step is Open SSL Installation, to configure this installation use port
#cd /usr/ports/security/openssl
#sudo make install clean
create directory for SSL certificate:
#sudo mkdir -p /usr/local/openssl/{certs,private}
then generate private key 1024-bit:
#cd /usr/local/openssl
#sudo /usr/local/bin/openssl genrsa -out private/domainname.com.key 1024
change the permission for private directory to :
# sudo chown -R root:wheel private
# sudo chmod -R 600 private
# sudo chmod u+X private
generate Certificate Signing Request (CSR) file :
# /usr/local/bin/openssl req -new -key private/domainname.com.key -out certs/domainname.com.csr
Country Name (2 letter code)[GB]: ID
State or Province Name (full name)[some-state]:Province
Locality Name (eg, city) []:City
Organization Name (eg, company)[Internet Widgits Pty Ltd]: Organization Name
Organization Unit Name (eg, section)[]:Organization Sub Unit
Common Name (eg, your name or your server’s hostname)[]:domainname.com
Email Address []:postmaster@domainname.com
Please enter the following ‘extra’ attributes to be sent with your certificate request A challenge password []:Entry the password
An optional company name []:
then create Certificate Signed (CRT)
# sudo /usr/local/bin/openssl x509 -req -days 365 -in certs/domainname.com.csr -out certs/domainname.com.crt -signkey private/domainname.com.key
The certificate using if webserver support with SSL


on July 24th, 2008 at 6:48 pm
yeah… this is the tutorial I’m looking for… Thanks!