Difference between revisions of "Git, Apache and HTTPS with a free certificate"

From Wiki de Caballero
Jump to navigation Jump to search
Line 1: Line 1:
==Prerequisites==
* Ubuntu, this was tested using Ubuntu 16
* Apache 2


==Git using Apache==
==Git using Apache==
# Install Apache <source lang="bash">
sudo apt-get install apache2 apache2-utils
</source>
# Enable necessary modules <source lang="bash">
a2enmod cgi alias env
</source>
* (very useful) https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP
* (very useful) https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP
* (useful with last) https://git-scm.com/docs/git-http-backend
* (useful with last) https://git-scm.com/docs/git-http-backend

Revision as of 21:24, 21 June 2017

Prerequisites

  • Ubuntu, this was tested using Ubuntu 16
  • Apache 2

Git using Apache

  1.  Install Apache
    sudo apt-get install apache2 apache2-utils
  2. Enable necessary modules
    a2enmod cgi alias env

More sites:

Self signed Certificate

How Certificates work

More info:

How to

How to create a Root Certificate authority and child certificates:

Other sites:

Adding the certificate to Apache

Ensuring the right protocol:

Other links:

Configuring Git to use the self signed certificate

More sites:

Client based authentication using certificates in Apache

Used links:

Other links:

(Possibly) Giving Git a Client Certificate

More (possibly useful) info