/owncloud

tools to configure a server

Tools to set up an nginx server with mutual TLS authentication.

Should work with Ubuntu 22.04 (managed node) and Ansible 2.9+ (control machine).

Mostly inspired by

Usage

Initial setup

Create certificate authority certificate:

ansible-playbook ca.yaml

Set up a server

Add server details to inventory.ini.

Set server up:

ansible-playbook server.yaml -i inventory.ini

This will:

  • generate the server certificate
  • set up nginx (with mutual authentication)
  • mount /dev/xvdb on /data

Create client certificate

Add users as needed in client.yaml.

Create client certificates:

ansible-playbook client.yaml

A PKCS #12 file will be generated for each user in out/client/$user.p12.