Signature based authentication

35 views
Skip to first unread message

Tariq Iqbal

unread,
Jul 2, 2019, 4:37:59 PM7/2/19
to Ansible Project
Hello All,

I am trying to follow this process outlined below for Ansible to authenicate to APIC controller using signature based authentication.


I need to determine where the open ssl command is ran.  Is it ran on the APIC controller or the Ansible controller?

Generate certificate and private key

Signature-based authentication requires a (self-signed) X.509 certificate with private key, and a configuration step for your AAA user in ACI. To generate a working X.509 certificate and private key, use the following procedure:

$ openssl req -new -newkey rsa:1024 -days 36500 -nodes -x509 -keyout admin.key -out admin.crt -subj '/CN=Admin/O=Your Company/C=US'

Kai Stian Olstad

unread,
Jul 2, 2019, 4:48:23 PM7/2/19
to ansible...@googlegroups.com
On 02.07.2019 22:37, Tariq Iqbal wrote:
> Hello All,
>
> I am trying to follow this process outlined below for Ansible to
> authenicate to APIC controller using signature based authentication.
>
> https://docs.ansible.com/ansible/latest/scenario_guides/guide_aci.html#signature-based-authentication-using-certificates
>
> I need to determine where the open ssl command is ran. Is it ran on the
> APIC controller or the Ansible controller?

If you read the whole page you are linking to you find your answer
https://docs.ansible.com/ansible/latest/scenario_guides/guide_aci.html#running-on-the-controller-locally


--
Kai Stian Olstad

Thomas Renzy

unread,
Jul 2, 2019, 5:47:00 PM7/2/19
to ansible...@googlegroups.com
Hi Tariq,

You generate this key on your Ansible control system.

Thanks,
Thomas


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/150a025e-2846-46a7-9541-a1de3f7358c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tariq Iqbal

unread,
Jul 3, 2019, 2:32:26 PM7/3/19
to Ansible Project
Thanks Tom for all your help.


On Tuesday, July 2, 2019 at 4:47:00 PM UTC-5, Thomas Renzy wrote:
Hi Tariq,

You generate this key on your Ansible control system.

Thanks,
Thomas


On Tue, Jul 2, 2019 at 1:38 PM Tariq Iqbal <tariq....@gmail.com> wrote:
Hello All,

I am trying to follow this process outlined below for Ansible to authenicate to APIC controller using signature based authentication.


I need to determine where the open ssl command is ran.  Is it ran on the APIC controller or the Ansible controller?

Generate certificate and private key

Signature-based authentication requires a (self-signed) X.509 certificate with private key, and a configuration step for your AAA user in ACI. To generate a working X.509 certificate and private key, use the following procedure:

$ openssl req -new -newkey rsa:1024 -days 36500 -nodes -x509 -keyout admin.key -out admin.crt -subj '/CN=Admin/O=Your Company/C=US'

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.

Thomas Renzy

unread,
Jul 3, 2019, 8:18:34 PM7/3/19
to ansible...@googlegroups.com
Hey Tariq,

One issue to be aware of. When I generated my certificate and keys, it had the start time set for 8 hours ahead of time. I can only imagine it set this because of GMT time and I am US PST. You can check the start time for the cert with the following command:

openssl x509 -in (name of cert).crt -text

Hope this helps.

Thanks,
Thomas


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages