diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-02-22 17:22:30 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-03-18 15:11:08 +0100 |
commit | 070fc176aecc3c7661cdb085b157d2d4c653fc46 (patch) | |
tree | 10822f0b3f2d466787e5f575a6aa0c28026ac512 /install/ui/test | |
parent | 5f6310ecc6b5747fd9f8b35786ece5e3b26789d3 (diff) | |
download | freeipa-070fc176aecc3c7661cdb085b157d2d4c653fc46.tar.gz freeipa-070fc176aecc3c7661cdb085b157d2d4c653fc46.tar.xz freeipa-070fc176aecc3c7661cdb085b157d2d4c653fc46.zip |
Web UI:Certificate pages
Following pages were added to Web UI:
* certificated details
* certificate search
Certificate is not regular object so it gets no metadata. Therefore artificial
metadata were created for it to allow usage of search and details facet.
Search and details facet were modified to allow removing of add/remove/update/
reset buttons - certificates have no mod operation and they are not added by
standard means.
User can revoke and restore certificated in details facet.
https://fedorahosted.org/freeipa/ticket/3419
Diffstat (limited to 'install/ui/test')
-rw-r--r-- | install/ui/test/data/cert_find.json | 71 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init.json | 7 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init_commands.json | 147 |
3 files changed, 225 insertions, 0 deletions
diff --git a/install/ui/test/data/cert_find.json b/install/ui/test/data/cert_find.json new file mode 100644 index 000000000..6c059bd7a --- /dev/null +++ b/install/ui/test/data/cert_find.json @@ -0,0 +1,71 @@ +{ + "error": null, + "id": null, + "result": { + "count": 10, + "result": [ + { + "serial_number": 1, + "serial_number_hex": "0x1", + "status": "VALID", + "subject": "CN=Certificate Authority,O=EXAMPLE.COM" + }, + { + "serial_number": 2, + "serial_number_hex": "0x2", + "status": "VALID", + "subject": "CN=OCSP Subsystem,O=EXAMPLE.COM" + }, + { + "serial_number": 3, + "serial_number_hex": "0x3", + "status": "VALID", + "subject": "CN=dev.example.com,O=EXAMPLE.COM" + }, + { + "serial_number": 4, + "serial_number_hex": "0x4", + "status": "VALID", + "subject": "CN=CA Subsystem,O=EXAMPLE.COM" + }, + { + "serial_number": 5, + "serial_number_hex": "0x5", + "status": "VALID", + "subject": "CN=CA Audit,O=EXAMPLE.COM" + }, + { + "serial_number": 6, + "serial_number_hex": "0x6", + "status": "VALID", + "subject": "CN=ipa-ca-agent,O=EXAMPLE.COM" + }, + { + "serial_number": 7, + "serial_number_hex": "0x7", + "status": "VALID", + "subject": "CN=IPA RA,O=EXAMPLE.COM" + }, + { + "serial_number": 8, + "serial_number_hex": "0x8", + "status": "VALID", + "subject": "CN=dev.example.com,O=EXAMPLE.COM" + }, + { + "serial_number": 9, + "serial_number_hex": "0x9", + "status": "VALID", + "subject": "CN=dev.example.com,O=EXAMPLE.COM" + }, + { + "serial_number": 10, + "serial_number_hex": "0xA", + "status": "VALID", + "subject": "CN=Object Signing Cert,O=EXAMPLE.COM" + } + ], + "summary": "10 certificates matched", + "truncated": false + } +}
\ No newline at end of file diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 73d54578b..685367473 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -176,6 +176,8 @@ "aa_compromise": "AA Compromise", "affiliation_changed": "Affiliation Changed", "ca_compromise": "CA Compromise", + "certificate": "Certificate", + "certificates": "Certificates", "certificate_hold": "Certificate Hold", "cessation_of_operation": "Cessation of Operation", "common_name": "Common Name", @@ -198,14 +200,18 @@ "request_message": "<ol> <li>Create a certificate database or use an existing one. To create a new database:<br/> <code># certutil -N -d <database path></code> </li> <li>Create a CSR with subject <em>CN=<hostname>,O=<realm></em>, for example:<br/> <code># certutil -R -d <database path> -a -g <key size> -s 'CN=${hostname},O=${realm}'</code> </li> <li> Copy and paste the CSR (from <em>-----BEGIN NEW CERTIFICATE REQUEST-----</em> to <em>-----END NEW CERTIFICATE REQUEST-----</em>) into the text area below: </li> </ol>", "requested": "Certificate requested", "restore_certificate": "Restore Certificate for ${entity} ${primary_key}", + "restore_certificate_simple": "Restore Certificate", "restore_confirmation": "To confirm your intention to restore this certificate, click the \"Restore\" button.", "restored": "Certificate restored", + "revocation_reason": "Revocation reason", "revoke_certificate": "Revoke Certificate for ${entity} ${primary_key}", + "revoke_certificate_simple": "Revoke Certificate", "revoke_confirmation": "To confirm your intention to revoke this certificate, select a reason from the pull-down list, and click the \"Revoke\" button.", "revoked": "Certificate Revoked", "serial_number": "Serial Number", "serial_number_hex": "Serial Number (hex)", "sha1_fingerprint": "SHA1 Fingerprint", + "status": "Status", "superseded": "Superseded", "unspecified": "Unspecified", "valid": "Valid Certificate Present", @@ -510,6 +516,7 @@ "audit": "Audit", "automember": "Automember", "automount": "Automount", + "cert": "Certificates", "dns": "DNS", "hbac": "Host Based Access Control", "identity": "Identity", diff --git a/install/ui/test/data/ipa_init_commands.json b/install/ui/test/data/ipa_init_commands.json index 2c128f73e..a7e00ba55 100644 --- a/install/ui/test/data/ipa_init_commands.json +++ b/install/ui/test/data/ipa_init_commands.json @@ -1825,6 +1825,153 @@ ], "takes_options": [] }, + "cert_find": { + "name": "cert_find", + "takes_args": [], + "takes_options": [ + { + "class": "Str", + "doc": "Subject", + "flags": [], + "label": "Subject", + "name": "subject", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Int", + "doc": "Reason for revoking the certificate (0-10)", + "flags": [], + "label": "Reason", + "maxvalue": 10, + "minvalue": 0, + "name": "revocation_reason", + "type": "int" + }, + { + "class": "Int", + "doc": "minimum serial number", + "flags": [], + "label": "<min_serial_number>", + "maxvalue": 2147483647, + "minvalue": 0, + "name": "min_serial_number", + "type": "int" + }, + { + "class": "Int", + "doc": "maximum serial number", + "flags": [], + "label": "<max_serial_number>", + "maxvalue": 2147483647, + "minvalue": -2147483648, + "name": "max_serial_number", + "type": "int" + }, + { + "class": "Flag", + "doc": "match the common name exactly", + "flags": [], + "label": "<exactly>", + "name": "exactly", + "type": "bool" + }, + { + "class": "Str", + "doc": "Valid not after from this date (YYYY-mm-dd)", + "flags": [], + "label": "<validnotafter_from>", + "name": "validnotafter_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not after to this date (YYYY-mm-dd)", + "flags": [], + "label": "<validnotafter_to>", + "name": "validnotafter_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not before from this date (YYYY-mm-dd)", + "flags": [], + "label": "<validnotbefore_from>", + "name": "validnotbefore_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not before to this date (YYYY-mm-dd)", + "flags": [], + "label": "<validnotbefore_to>", + "name": "validnotbefore_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Issued on from this date (YYYY-mm-dd)", + "flags": [], + "label": "<issuedon_from>", + "name": "issuedon_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Issued on to this date (YYYY-mm-dd)", + "flags": [], + "label": "<issuedon_to>", + "name": "issuedon_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Revoked on from this date (YYYY-mm-dd)", + "flags": [], + "label": "<revokedon_from>", + "name": "revokedon_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Revoked on to this date (YYYY-mm-dd)", + "flags": [], + "label": "<revokedon_to>", + "name": "revokedon_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Int", + "default": 100, + "doc": "Maximum number of certs returned", + "flags": [ + "no_display" + ], + "label": "Size Limit", + "maxvalue": 2147483647, + "minvalue": 0, + "name": "sizelimit", + "type": "int" + }, + { + "name": "all" + }, + { + "name": "raw" + }, + { + "name": "version" + } + ] + }, "cert_remove_hold": { "name": "cert_remove_hold", "takes_args": { |