Mobile app version of vmapp.org
Login or Join
Fox8124981

: What steps are required to enable SSL on Apache2 with Ubuntu? I am developing a strategy game for web where there there will be a lot of client-server traffic for sending attacks, moves, etc.

@Fox8124981

Posted in: #Apache2 #Https #Ubuntu

I am developing a strategy game for web where there there will be a lot of client-server traffic for sending attacks, moves, etc. Right now I send messages from the client to the server via HTTP, and I want to try and setup SSL on my Ubuntu server which already has a LAMP stack installed and running.

Here are the guides I've followed:

help.ubuntu.com/10.04/serverguide/httpd.html (I used this to enable SSL) help.ubuntu.com/12.04/serverguide/certificates-and-security.html (I followed this one first to generate the private and public keys)


After I installed the keys, I tried hitting my page using the prefix, but I got an error:


SSL connection error. Unable to make a secure connection to the server.
This may be a problem with the server, or it may be requiring a client
authentication certificate that you don't have. Error code:
ERR_SSL_PROTOCOL_ERROR


After I received this error, I tried following: www.debian-administration.org/articles/349
This lead me around to modifying my 'ports.conf' file which now looks like:

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
NameVirtualHost *:443
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
NameVirtualHost *:443
Listen 443
</IfModule>


I restarted Apache successfully, and I can still hit my pages using HTTP, but not HTTPS (receiving the same error as before).

What step(s) am I missing?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Fox8124981

1 Comments

Sorted by latest first Latest Oldest Best

 

@Welton855

The solution was located in digitalocean.com/community/articles/. I needed to perform the command: $ sudo a2ensite default-ssl

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme