From 070fc176aecc3c7661cdb085b157d2d4c653fc46 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 22 Feb 2013 17:22:30 +0100 Subject: 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 --- install/ui/test/data/cert_find.json | 71 ++++++++++++++ install/ui/test/data/ipa_init.json | 7 ++ install/ui/test/data/ipa_init_commands.json | 147 ++++++++++++++++++++++++++++ 3 files changed, 225 insertions(+) create mode 100644 install/ui/test/data/cert_find.json (limited to 'install/ui/test/data') 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": "
  1. Create a certificate database or use an existing one. To create a new database:
    # certutil -N -d <database path>
  2. Create a CSR with subject CN=<hostname>,O=<realm>, for example:
    # certutil -R -d <database path> -a -g <key size> -s 'CN=${hostname},O=${realm}'
  3. Copy and paste the CSR (from -----BEGIN NEW CERTIFICATE REQUEST----- to -----END NEW CERTIFICATE REQUEST-----) into the text area below:
", "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": "", + "maxvalue": 2147483647, + "minvalue": 0, + "name": "min_serial_number", + "type": "int" + }, + { + "class": "Int", + "doc": "maximum serial number", + "flags": [], + "label": "", + "maxvalue": 2147483647, + "minvalue": -2147483648, + "name": "max_serial_number", + "type": "int" + }, + { + "class": "Flag", + "doc": "match the common name exactly", + "flags": [], + "label": "", + "name": "exactly", + "type": "bool" + }, + { + "class": "Str", + "doc": "Valid not after from this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "validnotafter_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not after to this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "validnotafter_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not before from this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "validnotbefore_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Valid not before to this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "validnotbefore_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Issued on from this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "issuedon_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Issued on to this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "issuedon_to", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Revoked on from this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "name": "revokedon_from", + "noextrawhitespace": true, + "type": "unicode" + }, + { + "class": "Str", + "doc": "Revoked on to this date (YYYY-mm-dd)", + "flags": [], + "label": "", + "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": { -- cgit