Skip to content

Ansible role for generating self-signed SSL certificates

License

Notifications You must be signed in to change notification settings

galaxyproject/ansible-role-self-signed-certs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for Self Signed Certificates

This is designed to work with galaxyproject.nginx to generate self-signed certificates as-needed. So something like

- name: Install and configure nginx
  hosts: webservers
  vars:
    nginx_servers:
      - vhost1
      - vhost2
    nginx_ssl_servers:
      - vhost1_ssl
      - vhost2_ssl
    nginx_ssl_role: galaxyproject.self_signed_certs
    openssl_domains:
      - vhost1.example.org
      - vhost2.example.org
  roles:
    - galaxyproject.nginx

Or, if you've got properly signed certificates (maybe using the CSRs generated from this role)

- name: Install and configure nginx
  hosts: webservers
  vars:
    ...
    openssl_self_sign: false # ADD THIS
    # And put your certificate(+chain) in files/certificates/{{ openssl_domains[0] }}.cer
    openssl_domains:
      - vhost1.example.org
      - vhost2.example.org
  roles:
    - galaxyproject.nginx

And that will copy those files into the right places! (But not restart the service for you, yet.)

License

GPLv3

Author Information

This role was written and contributed to by the following people:

About

Ansible role for generating self-signed SSL certificates

Resources

License

Stars

Watchers

Forks

Packages

No packages published