htpasswd [-c] filename username,
where:
•
filename is a name of the .htpasswd file;
•
username is the user password for the web server;
•
[-c] is the optional switch enabling creation of the new
access file. If the switch is missing, the new file will not
be created and the data will be appended to the existing
access file.
5. Generate the new certificate file (cert.pem) and the new en-
coding key file (key.pem) for SSL instead of those supplied
with the distributive. These are the files providing the commu-
nication privacy. To do this, open the Open SSL project pro-
grams and follow these steps:
Create the key and the certificate request:
openssl req -new >; cert.csr
Delete the password from the key:
openssl rsa -in privkey.pem -out key.pem
Convert the certificate call in one certificate:
openssl x509 -in cert.csr -out cert.pem -req -signkey key.pem -
days 365
The following four files will be created: cert.pem, key.pem, cert.csr and
privkey.pem. You need only the first two of them, the rest may be de-
leted.
The produced files cert.pem and key.pem must be placed into the
web server root directory that is defined by the DOCROOT p
rameter of the file _httpd.conf.
145
W E B T U N E R
a-
Need help?
Do you have a question about the ANTI-VIRUS - FOR FREEBSD-OPENBSD-BSDI MAIL SERVER and is the answer not in the manual?