How to change an http site to https in apache2

I've got apache2 on a Sparc box running FreeBSD 5.3-RELEASE. I'd like to get some of the virtualhost sites that it's serving to do https. What do I change in the httpd.conf to do this? I admin the box via ssh and webmin, so either way is good, but I'd prefer to know how to do it via CLI as opposed to webmin.

here's a snippet of my virtualhost for one of the sites from my httpd.conf:
<VirtualHost 10.10.1.1>
DocumentRoot /usr/local/www/myhost
ServerName myhost.xxxx.xxxxxx.tld
<Directory "/usr/local/www/myhost">
AllowOverride None
order allow,deny
allow from all
Options +Indexes
AuthType Basic
AuthLDAPAuthoritative on
AuthLDAPEnabled on
AuthName "Documents and Downloads"
AuthLDAPUrl "ldap://ldap.xxx.xxxxx.tld/OU=Departments,OU=xxx xxxxx,DC=ad,DC=xxx
,DC=xxxxx,DC=xxx?sAMAccountName?sub?(objectclass=person)"
AuthLDAPBindDN "CN=xxxxxxxxxx,OU=xxxxxxxxxxxxxxx,OU=IT-Admin,OU=
xxxxxxx,DC=ad,DC=xxx,DC=xxxxxx,DC=tld"
AuthLDAPBindPassword xxxxxxxxx
require valid-user
</Directory>
</VirtualHost>

Will I need to set up a cert for the site, and how would I do so under apache2 if this is necessary?
LVL 9
David PiniellaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
David PiniellaAuthor Commented:
so which of those methods is most ideal for my situation and will I need to create a cert for the site? I understand that apache2 does ssl natively (built-in) as opposed to apache 1.3 (where you had have an ssl add-on).
0
 
ahoffmannConnect With a Mentor Commented:
apache comes with it own cert, the snaikoil cert.
You may generate your own cert using openssl, but for a trustworthy site that's not recommended, you better by a trusted cert.

0
All Courses

From novice to tech pro — start learning today.