-
Notifications
You must be signed in to change notification settings - Fork 33
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
brocade_security_security_certificate_generate #164
Comments
@daniel-chung-broadcom @prasad-valmeti-broadcom Can someone please help me with this.. |
Please share the FOS ansible version that you are using. Also, share the debug logs with "ansible-playbook .... -vvvvv" to have more insight into the issue. |
@prasad-valmeti-broadcom : Ansible Version: Ansible Automation Platform Controller 4.4.8 I reviewed csr_gen_export.yml sample playbook but I need to add few more addl. input vars under "generate_inputs" for our requirement which are below. Organizational Unit Name (eg, department name):test1 Debug logs with "ansible-playbook .... -vvvvv": ESTABLISH LOCAL CONNECTION FOR USER: root TASK [CSR generation. Existing CSR is not compared. This task will always change.] *** |
From 9.1 release, brocade-security-yang-types.yang has Obsoleted leaf ip-address-in-subject-alternative-name. |
It worked once I removed "ip-address-in-subject-alternative-name" option. Sorry, I got confused. From the below link I still see "ip-address-in-subject-alternative-name" is a valid option. so added that in my task Thanks for the help. |
Hello, I'm trying to generate the CSR for a lab switch with FOS v9.1.1d2 using brocade_security_security_certificate_generate.py module but getting 400 REST error code. I tried multiple time and still no luck. Can you please let me know where I'm doing wrong.
Error Message:
"POST_resp_data": {
"errors": {
"@xmlns": "urn:ietf:params:xml:ns:yang:ietf-restconf",
"error": {
"error-type": "application",
"error-tag": "operation-failed",
"error-app-tag": "Error",
"error-message": "Invalid input data",
"error-info": {
"error-code": "16715778",
"error-module": "cal"
}
}
}
},
"POST_resp_code": 400,
"POST_resp_reason": "Bad Request",
"msg": "POST failed",
CLI Command Process:
labswitch:switchansible> seccertmgmt generate -csr https
Generating a CSR will automatically do the following:
Delete all existing CSRs.
Warning:
Key-pair generation is CPU intensive and can cause high CPU usage
Private IPs and hostnames should not be part of SCN and/or SAN per CA/Browser forum.
Continue (yes, y, no, n): [no] yes
Country Name (2 letter code, eg, US):US
State or Province Name (full name, eg, California):state1
Locality Name (eg, city name):city1
Organization Name (eg, company name):company1
Organizational Unit Name (eg, department name):test1
Common Name (Fully qualified Domain Name, or IP address):labswitch.domain.com
Email Address:[email protected]
Subject Alternative Name, DNS (Fully Qualified Domain Name, or IP Address):labswitch.domain.com
Subject Alternative Name, DNS (Fully Qualified Domain Name, or IP Address):
Subject Alternative Name, IPAddress (IP v4 or v6 address):
Generating CSR, file name is: 10.10.10.10.csr
labswitch:switchansible>
Playbook:
vars:
generate_inputs:
certificate_entity: csr
certificate_type: https
country_name: US
state_name: state1
locality_name: city1
organization_name: company1
unit_name: test1
domain_name: "labswitch.domain.com"
email_address: "[email protected]"
subject_alternative_name_dns_names:
- dns-name: "labswitch.domain.com"
ip_address_in_subject_alternative_name: false
tasks:
brocade_security_security_certificate_generate:
credential: "{{ credential }}"
vfid: -1
generate_inputs: "{{generate_inputs}}"
The text was updated successfully, but these errors were encountered: