https://pulp.plan.io/https://pulp.plan.io/favicon.ico2020-05-28T21:21:06ZPulpCertGuard - Issue #6849: Pulp X509 Certguard - post certificatehttps://pulp.plan.io/issues/6849?journal_id=572682020-05-28T21:21:06Zbmbouterbmbouter@redhat.com
<ul></ul><p>I struggled with this same thing for a while when I was developing this. The issue is the <code>--form</code> encoding and the cert payload containing newlines in it.</p>
<p>That page you're reading from is out of date and needs to be updated :( That is probably the only page that is out of date currently <a href="https://pulp.plan.io/issues/6830" class="external">https://pulp.plan.io/issues/6830</a></p>
<p>If you can use the usage docs instead, those are up to date: <a href="https://pulp-certguard.readthedocs.io/en/latest/usage.html#create-a-content-guard" class="external">https://pulp-certguard.readthedocs.io/en/latest/usage.html#create-a-content-guard</a></p>
<p>So if I take your command and permute it, does this work?</p>
<p><code>http POST $AD/pulp/api/v3/contentguards/certguard/x509/ name=certguard-test ca_certificate@/home/centos/ca.pem</code></p>
<p>I think the --form being removed is the only problem.</p> CertGuard - Issue #6849: Pulp X509 Certguard - post certificatehttps://pulp.plan.io/issues/6849?journal_id=574312020-06-02T14:17:31Zbmbouterbmbouter@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - WORKSFORME</i></li></ul><p>I'm going to close this because I believe it's working. Please post a comment if we need to reopen due to this not working for you.</p>
<p>Thank you for filing.</p>