HomePhorge

(#2848) extract the subjectAltName value from the CSR.
f4fc11d4e6c8Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#2848) extract the subjectAltName value from the CSR.

When a CSR is submitted, we need to inspect it and determine if there are any
subjectAltNames present in the request, and if those are legal.

The logic to validate the content of an extension is complex, and decomposing
the content requires digging into various X509 and ASN.1 related classes.

This commit adds a subject_alt_names method that will extract the extensions
containing subjectAltName values from the CSR, and reformat them into a useful
set of content suitable for use in Ruby.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Oct 21 2011, 7:13 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUd64b01b1a2dd: (#2848) Set `certdnsnames` values into the CSR.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUf4fc11d4e6c8: (#2848) extract the subjectAltName value from the CSR. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 21 2011, 7:13 PM