Giter Site home page Giter Site logo

smoeding / puppet-openssl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 455 KB

Use Puppet to manage X.509 certificates, keys and parameter files

License: BSD 2-Clause "Simplified" License

Ruby 88.59% Puppet 11.24% Dockerfile 0.17%
openssl openssl-certs puppet

puppet-openssl's People

Contributors

smoeding avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

neatnerdprime

puppet-openssl's Issues

Add unique_subject = no to config file created by openssl::csr

At the moment, you can't re-create a certificate from the csr and config generated by openssl::csr because the default is to disallow multiple certs with the same subject name.

The openssl manual says this is for backwards compatibility and it's recommended to set unique_subject = no.

Can this be done in csr.conf.epp?

openssl_signcsr fails to generate cert if extensions is incorrect but reports success to Puppet

If you put an invalid value in for extensions then openssl_signcsr succeeds in Puppet but the actual openssl command has failed and the resulting certificate file does not exist:

Notice: openssl_signcsr: Using configuration from /etc/etcd/ca/ca.cnf
Notice: openssl_signcsr: Check that the request matches the signature
Notice: openssl_signcsr: Signature ok
Notice: openssl_signcsr: The Subject's Distinguished Name is as follows
Notice: openssl_signcsr: commonName            :ASN.1 12:'************'
Notice: openssl_signcsr: ERROR: adding extensions in section default
Notice: openssl_signcsr: 140144353465664:error:22097082:X509 V3 routines:do_ext_nconf:unknown extension name:../crypto/x509v3/v3_conf.c:78:
Notice: openssl_signcsr: 140144353465664:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:../crypto/x509v3/v3_conf.c:47:name=utf8, value=yes
Notice: /Stage[main]/Profile::Etcd_server_cert/Openssl_signcsr[/etc/etcd/server.pem]/ensure: created (corrective)

Use certutil to install a trusted certificate

On RedHat based systems the certificate should be added to the trusted database using certutil.

certutil -A -d sql:/etc/pki/nssdb -t "C,," -n "nickname" -i /etc/pki/tls/certs/nickname.crt
certutil -D -d sql:/etc/pki/nssdb -n "nickname"

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.