#Activate SSL certificate and hide snapshots

1 messages · Page 1 of 1 (latest)

prime wing
#

Hello everyone,
I have two questions.

Firstly, I create new SSL certificates in the SVM system as follows:

netapp.ontap.na_ontap_security_certificates:
  common_name: "SVMNAME"
  name: "SVMNAME"
  type: server
  svm: "SVMNAME"
  expiry_time: 'P3650DT'
  key_size: 4096
  hash_function: sha256
  https: true
  use_rest: always
  validate_certs: false
  hostname: "CLUSTER"
  username: "USERNAME"
  password: "PASSWORD"

Now I would like to configure these in the SVM. I do this on the CLI as follows:

security ssl modify -vserver SVMNAME -serial SERIALNUMBER -ca SVMNAME -common-name SVMNAME

How can I do this via Ansible? The Ansible module doesn't seem to be able to do this, but can it be solved somehow, e.g. via na_ontap_rest_cli?

And the second question is how I can do the following in Ansible:

vserver nfs modify -vserver SVMNAME -v3-hide-snapshot enabled

Many thanks and best regards

hollow berry
prime wing
#

Unfortunately, I can't activate it via rest_cli. Do you have an example of how to activate a previously created certificate?