diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-10-15 12:22:01 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-10-15 14:26:07 -0400 |
commit | 4c24581b5cffaffbb200152e1d43931c0d674102 (patch) | |
tree | 2f9aa6c8b7a2875804e1af834c7fc8e02d0a7973 /install/static/test | |
parent | acf5f9cad7438268148dff6c6b74d8c63048409a (diff) | |
download | freeipa.git-4c24581b5cffaffbb200152e1d43931c0d674102.tar.gz freeipa.git-4c24581b5cffaffbb200152e1d43931c0d674102.tar.xz freeipa.git-4c24581b5cffaffbb200152e1d43931c0d674102.zip |
Service certificate UI.
The service.py has been modified to include certificate info in
the service-show result if the service contains usercertificate.
A new file certificate.js has been added to store codes related
to certificates (e.g. revocation reasons, dialog boxes). The
service.js has been modified to provide the UI for certificate
management. The certificate.js can also be used for host
certificate management.
The Makefile.am and index.xhtml has been modified to include
certificate.js. New test data files have been added for certificate
operations.
To test revoke and restore operations the server needs to be
installed with dogtag CA instead of self-signed CA.
The certificate status and revocation reason in the details page
will be implemented in subsequent patches. Unit tests will also
be added in subsequent patches.
Diffstat (limited to 'install/static/test')
-rw-r--r-- | install/static/test/data/cert_remove_hold.json | 9 | ||||
-rw-r--r-- | install/static/test/data/cert_request.json | 17 | ||||
-rw-r--r-- | install/static/test/data/cert_revoke.json | 9 | ||||
-rw-r--r-- | install/static/test/data/json_metadata.json | 176 | ||||
-rw-r--r-- | install/static/test/data/service_show.json | 9 |
5 files changed, 218 insertions, 2 deletions
diff --git a/install/static/test/data/cert_remove_hold.json b/install/static/test/data/cert_remove_hold.json new file mode 100644 index 00000000..12548cb2 --- /dev/null +++ b/install/static/test/data/cert_remove_hold.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "unrevoked": true + } + } +} diff --git a/install/static/test/data/cert_request.json b/install/static/test/data/cert_request.json new file mode 100644 index 00000000..190a4443 --- /dev/null +++ b/install/static/test/data/cert_request.json @@ -0,0 +1,17 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "certificate": "MIIC2DCCAcCgAwIBAgIBFTANBgkqhkiG9w0BAQsFADAuMQwwCgYDVQQKEwNJUEExHjAcBgNVBAMTFUNlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0xMDEwMTUwNTE3MzZaFw0xMTA0MTMwNTE3MzZaMCgxDDAKBgNVBAoTA0lQQTEYMBYGA1UEAxMPZGV2LmV4YW1wbGUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDk18o/IK1Qe0Y/eURWsIHcJ/TmGdNy1h2fhzGIILtv8Qgq1K3U4T9eGAZVambpo1SUnJY+k+AAo43TyavSU05se4DIsw00XrrOyD5UunwsW+b+cIUCWbBJLFy9ODsVDJduXrj0RZGHEyta3VuO/gJBtdI9anjVvgegqXUBkenjPwIDAQABo4GKMIGHMB8GA1UdIwQYMBaAFCv9XyGV5ijtHriYMcECVmnNiMMAMD8GCCsGAQUFBwEBBDMwMTAvBggrBgEFBQcwAYYjaHR0cDovL2Rldi5leGFtcGxlLmNvbTo5MTgwL2NhL29jc3AwDgYDVR0PAQH/BAQDAgTwMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQB/OtoBZUYuGD0KZWpNdzIVdCxCTzZAetHA+o97cZCdufiBckZfZ9LEkQdL2MWvcnLlXOnRnQO/BnEAAtYVe4dpmizuzPn1+JTmK9+7q2HhQhXuU2NcsWutgYySNme7eNmfqi8uDoQ8FOPX4LvxLQDyKjkOogs6cEMZePMK8RE60ulHKdYfI23rRNtIExOl1zLJXkpExuXNq1flshyaLLu84B9zwE5FhSD/XAjPyAqYP97IPIkUfWpMyEs3N12JVCVNm0/753CDI946RPnyPpsULZufBV/8sdhDnULHfPIUMPgdOYemm9cYTP/V1uhwwCnFemhSAXSM/g6e9Xm4hH7s", + "issuer": "CN=Certificate Authority,O=IPA", + "md5_fingerprint": "87:ca:33:52:e3:07:4c:82:76:24:8d:53:ba:da:b3:fe", + "request_id": "50", + "serial_number": "1", + "sha1_fingerprint": "9f:fc:d3:e2:3b:f0:c1:1d:fc:5c:09:fa:f4:10:de:7b:b2:25:ae:7c", + "subject": "CN=dev.example.com,O=IPA", + "valid_not_after": "Wed Apr 13 05:17:36 2011 UTC", + "valid_not_before": "Fri Oct 15 05:17:36 2010 UTC" + } + } +} diff --git a/install/static/test/data/cert_revoke.json b/install/static/test/data/cert_revoke.json new file mode 100644 index 00000000..3fca1ee6 --- /dev/null +++ b/install/static/test/data/cert_revoke.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "revoked": true + } + } +} diff --git a/install/static/test/data/json_metadata.json b/install/static/test/data/json_metadata.json index cd617b48..e1cbffb5 100644 --- a/install/static/test/data/json_metadata.json +++ b/install/static/test/data/json_metadata.json @@ -2976,6 +2976,180 @@ "query": false, "required": false, "type": "str" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "issuer", + "cli_short_name": null, + "default": null, + "doc": "Issuer", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Issuer", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "issuer", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "valid_not_before", + "cli_short_name": null, + "default": null, + "doc": "Not Before", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Not Before", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "valid_not_before", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "valid_not_after", + "cli_short_name": null, + "default": null, + "doc": "Not After", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Not After", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "valid_not_after", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "md5_fingerprint", + "cli_short_name": null, + "default": null, + "doc": "Fingerprint (MD5)", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Fingerprint (MD5)", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "md5_fingerprint", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "sha1_fingerprint", + "cli_short_name": null, + "default": null, + "doc": "Fingerprint (SHA1)", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Fingerprint (SHA1)", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "sha1_fingerprint", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "serial_number", + "cli_short_name": null, + "default": null, + "doc": "Serial number", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Serial number", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "serial_number", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" } ], "uuid_attribute": "ipauniqueid" @@ -4163,4 +4337,4 @@ } } } -}
\ No newline at end of file +} diff --git a/install/static/test/data/service_show.json b/install/static/test/data/service_show.json index 7ab778e1..d01f8585 100644 --- a/install/static/test/data/service_show.json +++ b/install/static/test/data/service_show.json @@ -5,17 +5,24 @@ "result": { "dn": "krbprincipalname=test/dev.example.com@dev.example.com,cn=services,cn=accounts,dc=dev,dc=example,dc=com", "has_keytab": false, + "issuer": "CN=IPA Test Certificate Authority", "krbprincipalname": [ "test/dev.example.com@DEV.EXAMPLE.COM" ], "managedby_host": [ "dev.example.com" ], + "md5_fingerprint": "08:86:a9:f9:87:af:0d:d7:42:01:e0:5f:12:9b:32:7f", + "serial_number": "1052", + "sha1_fingerprint": "b8:4c:4b:79:4f:13:03:79:47:08:fa:6b:52:63:3d:f9:15:8e:7e:dc", + "subject": "CN=dev.example.com,O=IPA", "usercertificate": [ { "__base64__": "MIICAjCCAWugAwIBAgICBAswDQYJKoZIhvcNAQEFBQAwKTEnMCUGA1UEAxMeSVBBIFRlc3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4XDTEwMTAwNzIzMzk0NFoXDTE1MTAwNzIzMzk0NFowKDEMMAoGA1UECgwDSVBBMRgwFgYDVQQDDA9kZXYuZXhhbXBsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOTXyj8grVB7Rj95RFawgdwn9OYZ03LWHZ+HMYggu2/xCCrUrdThP14YBlVqZumjVJSclj6T4ACjjdPJq9JTTmx7gMizDTReus7IPlS6fCxb5v5whQJZsEksXL04OxUMl25euPRFkYcTK1rdW47+AkG10j1qeNW+B6CpdQGR6eM/AgMBAAGjOjA4MBEGCWCGSAGG+EIBAQQEAwIGQDATBgNVHSUEDDAKBggrBgEFBQcDATAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEASIhq723VL5xP0q51MYXFlGU1boD7pPD1pIQspD/MjCIEupcbH2kAo4wf+EiKsXR0rs+WZkaSgvFqaM4OQ2kWSFTiqmFXFDBEi6EFr68yLg7IpQpNTzVBXERd8B4GwNL9wrRw60jPXlUK29DPBsdGq8fDgX18l39wKkWXv7p1to4=" } - ] + ], + "valid_not_after": "Tue Oct 13 01:59:32 2015 UTC", + "valid_not_before": "Wed Oct 13 01:59:32 2010 UTC" }, "summary": null, "value": "test/dev.example.com@DEV.EXAMPLE.COM" |