On Wed, Jul 23, 2014 at 11:40 AM, Danny Roberts <
dannyroberts.perso...@googlemail.com> wrote:

> Thanks that certainly sorts out the authentication problem.
>
> Turns out I'm using the wrong API call for what I require though. I'm
> after the equivalent of running "puppet cert list" and not "puppet cert
> list --all" like the API call I was trying to do.
>
> I think
> http://docs.puppetlabs.com/guides/rest_api.html#certificate-request is
> for this but every time I try the first curl example I get:
>
> Not Acceptable: No supported formats are acceptable (Accept: yaml)
>
> It doesn't matter which format I try they all report this.
>
> I checked the documentation as well at
> https://github.com/puppetlabs/puppet/blob/master/api/docs/http_certificate_request.md
>
> The "Search" stuff in that doc does not seem to work for me either.
>
>
You are getting that response because yaml isn't supported for this. You
need to specify an Accept of "s" (Accept: s). See
https://github.com/puppetlabs/puppet/blob/master/api/docs/http_certificate_request.md#supported-response-formats


>
> On Wednesday, 23 July 2014 08:20:26 UTC+1, Martin Alfke wrote:
>>
>> Hi Danny,
>>
>> look into puppet auth.conf
>> You need to allow the requesting server access to certificate_status.
>>
>> hth,
>>
>> Martin
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/82817370-63c7-41f2-9b64-5b649fba9032%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/82817370-63c7-41f2-9b64-5b649fba9032%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrew Parker
a...@puppetlabs.com
Freenode: zaphod42
Twitter: @aparker42
Software Developer

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
22-24 in San Francisco*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANhgQXtvAYBKHB48Er2a7kU3KTr1OQ54C2be%2Bz1C4ENfujLaxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to