Method: Puppet::SSL::Oids.register_puppet_oids
- Defined in:
- lib/puppet/ssl/oids.rb
.register_puppet_oids ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Register our custom Puppet OIDs with OpenSSL so they can be used as CSR extensions. Without registering these OIDs, OpenSSL will fail when it encounters such an extension in a CSR.
82 83 84 85 86 87 88 89 90 |
# File 'lib/puppet/ssl/oids.rb', line 82 def self.register_puppet_oids() if !@did_register_puppet_oids PUPPET_OIDS.each do |oid_defn| OpenSSL::ASN1::ObjectId.register(*oid_defn) end @did_register_puppet_oids = true end end |