parameters: introduce CertificateSigningRequest

Previously, CSRs were handled as a Str parameter which brought
trouble to Python 3 because of its more strict type requirements.
We introduce a CertificateSigningRequest parameter which allows to
use python-cryptography x509.CertificateSigningRequest to represent
CSRs in the framework.

https://pagure.io/freeipa/issue/7131
This commit is contained in:
Stanislav Laznicka committed 2017-10-25 09:44:37 +02:00
1 parent 26d721e6ea
commit 61605d28d8
7 files changed
+83 -47

No files matched your search

+1 -1
View File
@@ -783,7 +783,7 @@ option: Str('version?')
output: Output('result')
command: cert_request/1
args: 1,9,3
arg: Str('csr', cli_name='csr_file')
arg: CertificateSigningRequest('csr', cli_name='csr_file')
option: Flag('add', autofill=True, default=False)
option: Flag('all', autofill=True, cli_name='all', default=False)
option: Str('cacn?', autofill=True, cli_name='ca', default=u'ipa')