(#21817) Ignore duplicate certs

Previously, SSL connections initiated by the puppet agent on windows, e.g
puppet module install, would cause the agent to terminate if the 'Root' store
on Windows contained duplicate certificates.

This commit ensures that we only add unique certificates to the X509 store.
Also, if we fail to add a certificate to the store, we issue a warning and
continue.
(#9546) Preserve permissions in 'puppet module build'

Previously, 'puppet module build' made no attempt to preserve
permissions. This could render any external fact scripts
unexecutable.  This patch simply preserves permissions when
creating the pkg directory which is tarred up to build the
module.
(#22938) fix Windows tests for symbolic file modes

 - lower nibble must be set to 4 for Ruby to properly be able to return
   the file mode under Windows
(maint) Ensure that the autosign setting is validated.

Original patch by Patrick Hemmer <patrick.hemmer@gmail.com>
(#7244) Add autosign_command for programmatic CSR autosigning

This commit adds support for delegating control of autosigning to an
outside command. This allows users to define their own criteria for
signing CSRs. This commit adds a new setting, 'autosign_command', for
the command to use for testing CSRs, and extends the logic of the CA to
test for autosigning based on both the 'autosign' setting and the
output of the autosign_command.

Original patch by Patrick Hemmer <patrick.hemmer@gmail.com>
(maint) Extract common ssl setup for acceptance tests

Extracts cert initialization from git/package certificate provisioning,
and common ssl reset steps from the autosign_command and
puppet_cert_generate_and_autosign tests into the
puppet/acceptance/common_utils helper lib.
Merge pull request #2053 from Iristyle/ticket/master/22938-fix-mode-test-windows

(#22938) fix Windows tests for symbolic file modes
(maint) more explicit stdout tests for autosign_command acceptance

We were assert_no_matching for the same string in both cases; instead
assert_match output for more surety.
Merge pull request #2022 from adrienthebo/feature/7244/add_autosign_command

(#7244) Add autosign command
(maint) stub $CHILD_STATUS for autosign_command specs

Without this commit, the value of $CHILD_STATUS in the autosign_command specs
is not stubbed, so is dependent on the return value of the last command in the
specs. This can lead to spurious test failures because this leaks
information between tests. This commit stubs the $CHILD_STATUS global
variable so that the autosign_command tests are always isolated.
Merge branch 'maint/master/autosign_command-solaris-specs'
(#9546) Preserve execute permissions on 'module install'

Previously (even with the patch to 'module build') execute
permissions were stripped from everything in a module.  This
was introduced to fix the security holes discussed in #14333.
However that fix (which set all files to 644) had the unneeded
side effect of discarding the executable bit.

So this change preserves permissions from the tarball, but
removes sticky/setuid/setgid bits (which are the security hole)
and removes file write permissions (which aren't needed).  This
should address the needs of both #9546 and #14333.
(#9546) Update test to reflect changed permissions
(#9546) Change check for module installation

Now that we are only stripping the dangerous bits from the file
permissions (sticky, suid, sgid, and write) the test for correct module
installation was incorrect.
Merge branch 'kylog-issue/9546/make-pmt-to-preserve-execute-permissions'

* kylog-issue/9546/make-pmt-to-preserve-execute-permissions:
  (#9546) Change check for module installation
  (#9546) Update test to reflect changed permissions
  (#9546) Preserve execute permissions on 'module install'
  (#9546) Preserve permissions in 'puppet module build'
(Doc) Mark the Puppet::Util::Execution public methods

The methods where not public, nor private. They should have been marked
public.
(#23131) Remove special casing of Class 'main'
(#23138) Document status

This adds documentation for the status endpoint. This endpoint has
almost no behavior, but could be extended in the future to provide more
information.
(#23131) Add a spec test asserting that main is treated like other classes
Merge pull request #2058 from zaphod42/feature/master/document-status

(#23138) Document status