|
165 | 165 | """ |
166 | 166 |
|
167 | 167 | RETURN = r""" |
168 | | -privatekey: |
169 | | - description: |
170 | | - - Path to the TLS/SSL private key the CSR was generated for. |
171 | | - - Will be V(none) if the private key has been provided in O(privatekey_content). |
172 | | - returned: changed or success |
173 | | - type: str |
174 | | - sample: /etc/ssl/private/ansible.com.pem |
175 | 168 | filename: |
176 | 169 | description: Path to the generated Certificate Signing Request. |
177 | 170 | returned: changed or success |
178 | 171 | type: str |
179 | 172 | sample: /etc/ssl/csr/www.ansible.com.csr |
180 | | -subject: |
181 | | - description: A list of the subject tuples attached to the CSR. |
182 | | - returned: changed or success |
183 | | - type: list |
184 | | - elements: list |
185 | | - sample: [['CN', 'www.ansible.com'], ['O', 'Ansible']] |
186 | | -subjectAltName: |
187 | | - description: The alternative names this CSR is valid for. |
188 | | - returned: changed or success |
189 | | - type: list |
190 | | - elements: str |
191 | | - sample: ['DNS:www.ansible.com', 'DNS:m.ansible.com'] |
192 | | -keyUsage: |
193 | | - description: Purpose for which the public key may be used. |
194 | | - returned: changed or success |
195 | | - type: list |
196 | | - elements: str |
197 | | - sample: ['digitalSignature', 'keyAgreement'] |
198 | | -extendedKeyUsage: |
199 | | - description: Additional restriction on the public key purposes. |
200 | | - returned: changed or success |
201 | | - type: list |
202 | | - elements: str |
203 | | - sample: ['clientAuth'] |
204 | | -basicConstraints: |
205 | | - description: Indicates if the certificate belongs to a CA. |
206 | | - returned: changed or success |
207 | | - type: list |
208 | | - elements: str |
209 | | - sample: ['CA:TRUE', 'pathLenConstraint:0'] |
210 | | -ocsp_must_staple: |
211 | | - description: Indicates whether the certificate has the OCSP Must Staple feature enabled. |
212 | | - returned: changed or success |
213 | | - type: bool |
214 | | - sample: false |
215 | 173 | name_constraints_permitted: |
216 | | - description: List of permitted subtrees to sign certificates for. |
217 | | - returned: changed or success |
218 | | - type: list |
219 | | - elements: str |
220 | | - sample: ['email:.somedomain.com'] |
221 | 174 | version_added: 1.1.0 |
222 | 175 | name_constraints_excluded: |
223 | | - description: List of excluded subtrees the CA cannot sign certificates for. |
224 | | - returned: changed or success |
225 | | - type: list |
226 | | - elements: str |
227 | | - sample: ['email:.com'] |
228 | 176 | version_added: 1.1.0 |
229 | 177 | backup_file: |
230 | 178 | description: Name of backup file created. |
|
236 | 184 | returned: if O(state) is V(present) and O(return_content) is V(true) |
237 | 185 | type: str |
238 | 186 | version_added: "1.0.0" |
| 187 | +
|
| 188 | +extends_documentation_fragment: |
| 189 | + - community.crypto._module_csr |
239 | 190 | """ |
240 | 191 |
|
241 | 192 | import os |
|
0 commit comments