getent does not exist on 10.9 so this commit uses dscacheutil to query the homedir for the root user.
This reverts commit 14852e0259, reversing changes made to a95dccd464. This is to fix the broken build (failing tests) as per #8925 and #10007
14852e0259
a95dccd464
certificates from a CA (or locally). This function works by either obtaining the file locally or remotely based on Puppets configuration. Also added get_pubkey which wraps get_certificate and extracts the public key.