freeipa/ipaclient/plugins
Stanislav Laznicka 5a44ca6383 Create a Certificate parameter
Up until now, Bytes parameter was used for certificate parameters
throughout the framework. However, the Bytes parameter does nothing
special for certificates, like validation, so this had to be done
for each of the parameters which were supposed to represent a
certificate.

This commit introduces a special Certificate parameter which takes
care of certificate validation so this does not have to be done
separately. It also makes sure that the certificates represented by
this parameter are always converted to DER format so that we can work
with them in a unified manner throughout the framework.

This commit also makes it possible to pass bytes directly during
instantiation of the Certificate parameter and they are still
represented correctly after their conversion in the _convert_scalar()
method.

https://pagure.io/freeipa/issue/4985

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
2017-07-27 10:28:58 +02:00
..
__init__.py ipaclient: introduce ipaclient.plugins 2016-06-03 09:00:34 +02:00
automember.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
automount.py ipaclient.plugins: Use api_version from internally called commands 2016-12-14 11:50:35 +01:00
ca.py x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
cert.py Create a Certificate parameter 2017-07-27 10:28:58 +02:00
certmap.py certmap: load certificate from file in certmap-match CLI 2017-03-13 08:03:53 +00:00
certprofile.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
csrgen.py Slim down dependencies 2017-05-09 17:17:29 +02:00
dns.py dns: fix dnsrecord_add interactive mode 2017-03-08 15:52:41 +01:00
hbacrule.py ipalib: split off client-side plugin code into ipaclient 2016-06-03 09:00:34 +02:00
hbactest.py Fix ipa hbactest output 2016-08-04 17:13:16 +02:00
host.py x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
idrange.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
internal.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
location.py Remove unused variables in the code 2016-09-27 13:35:58 +02:00
migration.py migrate-ds: Mention --enable-migration in error message about migration mode 2016-08-22 17:59:38 +02:00
misc.py Make env and plugins commands local again 2016-12-02 13:00:06 +01:00
otptoken_yubikey.py otptoken-add-yubikey: When --digits not provided use default value 2017-05-16 11:39:43 +02:00
otptoken.py Remove NSSConnection from otptoken plugin 2017-03-01 09:43:41 +00:00
passwd.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
permission.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
rpcclient.py ipalib: move client-side plugins to ipaclient 2016-06-03 09:00:34 +02:00
server.py Handled empty hostname in server-del command 2016-08-24 15:50:25 +02:00
service.py x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
sudorule.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
topology.py topology.py: Removes error message from dictionary. 2017-07-14 09:23:17 +02:00
trust.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
user.py x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
vault.py x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00