ENC smart proxy validation fails
Using latest nightly and encountered the following error: No smart proxy server found on  and is not in trusted_puppetmaster_hosts
As you can see it wasn't listing the connecting smart proxy / host. Dug into the code and found the following section of code:
request_hosts += certificate.subject_alternative_names
request_hosts << certificate.subject
Testing of certificate.subject_alternative_names always evaluates to true even when no SAN. This results in request_hosts to be empty and authentication of the request fails.
fixes #13817 - test certificate.subject_alternative_names for presence
Otherwise certificate SAN test is always true even with no SAN. This
results in request_hosts being empty and thus ENC authentication fails.
With test by Dominic Cleal <firstname.lastname@example.org>
(cherry picked from commit f441da9df0f835b1db166724c6ebbc2a695bc498)