Skip to content

Palleri/localca-buildv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Localca

Simple local certificate authority

logo

logo

ONLY FOR INTERNAL ACCESS

DO NOT PUBLISH ON THE INTERNET.

DO NOT USE FOR PRODUCTION.

NOT CHECKED FOR BUGS OR VULNERABILITIES.

Docker image

Bugs and fixes

  1. Cronjob not working properly (Fixed 2023-01-27)

Aslong as the ca.pem remains in /var/www/html/files/ca the container will not install a new one

To reinstall CA, delete folder ./data/files/ca


Create a file or a secret with your cakey and mount it to the container. Use ENV:

environment:
  - cakey_FILE=/run/secrets/cakey

Or

environment:
  - cakey=supersecretpassword

docker-compose.yml

version: '3.2'
secrets:
  cakey:
    file: ./cakey.txt
services:
  app:
    container_name: localca
    hostname: ca
    domainname: local.local
    secrets:
      - cakey
    image: 'palleri/localca:latest'
    restart: unless-stopped
    ports:
      - '80:80'
    volumes:
      - ./data:/var/www/html
    environment:
      - ca=ca.homelab.local # Name of the CA including your domain (FQDN)
      - cakey_FILE=/run/secrets/cakey
      - O=localca
      - C=SE # Country code

DNS settings for docker-compose.

services:
  app:
  ....
    dns:
      - 192.168.1.1
  ....

ca = Name of the ROOTCA

cakey = privatekey (Use docker secrets instead of plain-text inside docker-compose.yml)


Convert to .p12: This create certificate with client authentication attributes instead of server authentication.


For more security: Create your client certificate .p12 and add it to your browser. Install ca.pem in your browser and nginx and activate ssl_verify_client on;

NGINX proxy manager conf

ssl_client_certificate /etc/ssl/certs/ca.pem;
ssl_verify_client on;

Github Palleri/LocalCA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published