Hi Marco,

Did you ever find a solution for this?  We are also looking to delete certs 
via the API.  We have it working with out SSL/TLS, but would like to have 
it work with SSL/TLS.

Thanks for any info.

-Scott

On Monday, November 14, 2016 at 5:10:25 AM UTC-5, marco giovannini wrote:
>
> Hi
>
> thanks for the information.
>
> What  I'm trying to do is revoke/delete a puppet certificate for a host by 
> API.
>
> Seem the API call to delete the cert it is not available in the stable 
> Foreman yet or at least I did not find it in the doc :)
>
> The host is not deployed by Foreman as the unofficial plugin for 
> Cloudstack is not working anymore and we will need time to fix it, it is 
> only connecting  to puppet at the moment.
>
> When we delete a host by API  it seems it doesn't delete the puppet cert 
> an when we redeploy it (we are implementing an auto-scale solution so host 
> get deployed and deleted based on the load) their is a mismatch with the 
> new cert and the host doesn't not get the conf
>
> On Friday, November 11, 2016 at 5:19:15 PM UTC+1, marco giovannini wrote:
>>
>>
>> Does anyone have any idea about what might be wrong ?
>>
>> [root@foreman~]# curl -X GET -u admin:XXXXXXXXXXXXXXXX -H  
>> "Accept:pplication/json" -k https://localhost:9090/version
>> {"version":"1.13.0","modules":{"pulp":"1.3.0","puppetca":"1.13.0","puppet":"1.13.0","logs":"1.13.0"}}[root@foreman
>>  
>> ~]#
>>
>> [root@foreman ~]# curl -X GET -u admin:XXXXXXXXXXXXXX -H  
>> "Accept:pplication/json" -k https://localhost:9090/features
>> ["logs","pulp","puppet","puppetca"][root@foreman~]#
>>
>> [root@foreman ~]# curl -X GET -u admin:XXXXXXXXXXXXX -H  
>> "Accept:pplication/json" -k https://localhost:9090/puppet/ca/
>> could not read client cert from environment[root@foreman ~]#
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to