Git Product home page Git Product logo

pki_certs's Introduction

Windows PKI Certificate Issuing - haydn_j_evans.pki_certs

Ansible role that generates an openssl config, creates an csr request, and automatically requests/retrieves a certiicate from a Microsoft CA Server

Usage

This role can be used with the followung variables:

---
- hosts: lall
  tasks:
    - name: Include role
      include_role:
        name: haydn-j-evans/pki_certs
      vars:
        ansible_host: 
        ansible_domain:
        pki_ca_host:
        update_existing_cert_domains: "true" or "false"
        certificate_organisational_unit: 
        certificate_organisation:
        certificate_email:
        certificate_cn:
        certificate_country:
        certificate_state:
        certificate_city:
        pki_san1: 
        .
        pki_san20: 
        pki_ip1:
        .
        pki_ip5:

The role supports a max of 20 Subject Alternative Names and a max of 5 IP addresses. Only insert as many values as you need.

Renewing Certificates vs Issuing certificates with new domains included.

If you wish to only update a certificate that is due to expire, use the value "update_existing_cert_domains: false" This will then search for an existing openssl.conf at the following location:

/etc/pki/tls/misc/openssl.conf

If this file is not present, the role will end.

Certificate and Key locations

The role will place the certificate and key in the following locations:

Certificate - /etc/pki/tls/certs/{ ansible_hostname.ansible_domain }.cert

Key - /etc/pki/tls/private/{ ansible_hostname.ansible_domain }.key

Tags

The role supports the following tags for more granularity:

pfx - If java is present on the system, this tag will generate a PFX file from the generated certificate

cert - Performs the steps to generate the certificate

verify - copies the certificate + key from the temporary directory to the final location =

validate - compares the generated certificate and generated key hashes to ensure a valid cert is generated.

pki_certs's People

Contributors

haydn-j-evans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.