<div dir="ltr">Hi Michael,<div><br></div><div>Thanks for responding. We are using the command-line interface but we'd rather not script the password in plain text "pulp-admin login -u yourusernamehere -p yourpasswordhere" every time and we can't reliably set it up in advance as the SSL cert expires after 1 week.</div>

<div><br></div><div>Is there any way to configure how long the cert lasts?</div><div><br></div><div>Regards</div><div><br></div><div>Caoilte</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Nov 6, 2013 at 2:14 PM, Michael Hrivnak <span dir="ltr"><<a href="mailto:mhrivnak@redhat.com" target="_blank">mhrivnak@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Caoilte,<br>
<br>
If you're using our command-line interface, you should use its "login" feature ($ pulp-admin login -u yourusernamehere). This gives you a client-side SSL certificate that automatically gets used by future commands. If you're using our REST API directly, you can see authentication details here:<br>


<br>
<a href="http://pulp-dev-guide.readthedocs.org/en/pulp-2.2/integration/rest-api/authentication.html" target="_blank">http://pulp-dev-guide.readthedocs.org/en/pulp-2.2/integration/rest-api/authentication.html</a><br>
<br>
Michael<br>
<div><div class="h5"><br>
<br>
----- Original Message -----<br>
From: "Caoilte O'Connor" <<a href="mailto:caoilte@gmail.com">caoilte@gmail.com</a>><br>
To: <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a><br>
Sent: Monday, November 4, 2013 9:03:36 AM<br>
Subject: [Pulp-list] What is the best way to script our authentication?<br>
<br>
Hi,<br>
I'm working on some scripts that will use pulp to upload RPMs and copy them between repositories.<br>
<br>
Is there a better way to authenticate than specifying a password as a command line argument? (eg long lasting certs)<br>
<br>
Regards<br>
<br>
Caoilte<br>
<br>
</div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</blockquote></div><br></div>