Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: netscaler.adc.sslcertkey module - linkcertkeyname parameter has no affect #318

Closed
radhikari-arch opened this issue Dec 13, 2023 · 1 comment
Assignees
Labels

Comments

@radhikari-arch
Copy link

Summary

Here is the ansible task:

- name: Install certificate
  netscaler.adc.sslcertkey:
    nsip: "{{ provider_nsip }}"
    nitro_user: "{{ provider_username }}"
    nitro_pass: "{{ provider_password }}"
    nitro_protocol: https
    validate_certs: false
    certkey: "{{ common_name_filename }}-{{ suffix }}"
    inform: PFX
    cert: "{{ common_name_filename }}-{{ suffix }}.pfx"
    key: "{{ common_name_filename }}-{{ suffix }}.pfx"
    linkcertkeyname: "DigiCertCA"
    expirymonitor: ENABLED
    notificationperiod: 30
    password: false
    passplain: "{{ netscaler_certificate_passphrase }}"
    save_config: true
  register: import_certs

With this task, the cert get installed. The CA cert named DigiCertCA was already installed manually. But this task does not link the certificate o the DigiCertCA. When I check the cert links it shows empty. I can manually link to DigiCertCA though from the portal.
image

How do I link the cert to the CA?

Issue Type

Bug Report

Component Name

netscaler.adc.sslcertkey

Python Version

$ python --version # or python3 --version
Python 3.6.8

Ansible Version

$ ansible --version
ansible 2.9.15

Ansible Configuration

$ ansible-config dump --only-changed

netscaler.adc Collection Version

$ ansible-galaxy collection list netscaler.adc

[2.0.3] - 2023-11-14

Target NetScaler Version

> show ns version
NetScaler NS13.1: Build 50.23.nc, Date: Oct 18 2023, 00:53:13   (64-bit)

Equivalent NetScaler CLI Command

Steps to Reproduce

- name: Install certificate
  netscaler.adc.sslcertkey:
    nsip: "{{ provider_nsip }}"
    nitro_user: "{{ provider_username }}"
    nitro_pass: "{{ provider_password }}"
    nitro_protocol: https
    validate_certs: false
    certkey: "{{ common_name_filename }}-{{ suffix }}"
    inform: PFX
    cert: "{{ common_name_filename }}-{{ suffix }}.pfx"
    key: "{{ common_name_filename }}-{{ suffix }}.pfx"
    linkcertkeyname: "DigiCertCA"
    expirymonitor: ENABLED
    notificationperiod: 30
    password: false
    passplain: "{{ netscaler_certificate_passphrase }}"
    save_config: true
  register: import_certs

Expected Results

The cert gets linked to CA with the user pf parameter linkcertkeyname

Actual Results

Additioinal Notes

No response

@sumanth-lingappa
Copy link
Collaborator

This is fixed in the latest PR: #357

You can download the latest unreleased version

ansible-galaxy collection install "git+https://github.com/netscaler/ansible-collection-netscaleradc.git" --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants