Skip to content

(#8925) Added new function called 'get_certificate' for retrieving #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kbarber
Copy link
Contributor

@kbarber kbarber commented Aug 17, 2011

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.

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.
end
else
# Obtain the certificate from the CA if its remote
# TODO: wrap: puppet certificate --render-as s --ca-location local find [email protected]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to do this with the Ruby API for the face, vis Puppet::Face[:certificate, '0.0.1'].find('[email protected]'). That should return a useful Ruby object back to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - I figured that but I was aiming for 2.6.x support as well ... I experimented with deeper API's on both but figured it wasn't a clean way of doing it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, cool. Merge away, then. :)

@slippycheeze
Copy link
Contributor

I honestly can't tell if this is the right approach or not to the problem. The code looks correct and reasonable to me, and I don't object to it, but I want another confirmation from someone before it merges. (Sorry, Ken. Not a criticism; I think I would have done it the same way. :)

jamtur01 added a commit that referenced this pull request Oct 4, 2011
(#8925) Added new function called 'get_certificate' for retrieving
@jamtur01 jamtur01 merged commit 14852e0 into puppetlabs:master Oct 4, 2011
jeffmccune pushed a commit that referenced this pull request Oct 10, 2011
…5-user_ssl_certs"

This reverts commit 14852e0, reversing
changes made to a95dccd.

This is to fix the broken build (failing tests) as per #8925 and #10007
jeffmccune pushed a commit that referenced this pull request Oct 10, 2011
* ticket/master/revert_8925:
  (#10007) Revert "Merge pull request #13 from kbarber/issue/master/8925-user_ssl_certs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants