I am trying to install an SSL server certifcate with my own CA root and intermediate certifcates for my lab environment (ontap simulator). I can install the certificate on the first run, but if I run my playbook again, I get the following error:
Error creating or installing certificate: {'message': 'Duplicate server-chain certificate entry found. Run "security certificate delete -type server-chain -vserver ontapsim -common-name "ontapsim" -ca "My Intermediate CA" -serial 04FA" to delete the duplicate entry. Run "security certificate show -vserver ontapsim" to view all certificates.', 'code': '3735673'}
My Playbook runs fine on older ONTAP versions like 9.6 or 9.7.
My task:
- name: Install SSL server certificate
netapp.ontap.na_ontap_security_certificates:
type: server
common_name: '{{ cert.common_name }}'
intermediate_certificates: '{{ cert.intermediate_certs }}'
private_key: '{{ cert.private_key }}'
public_certificate: '{{ cert.public_certificate }}'
svm: '{{ cert.svm|default(omit) }}'
ONTAP versions: 9.8 and 9.12
Collection: 22.4.1 and 22.5.0