From 53eec401f222178ff2ac34fd6223b121f485969d Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 12 Aug 2016 02:23:18 +0200 Subject: [PATCH 01/10] Removed PKCS #7 from add user cert dialog in TPS UI. The dialog box for adding user certificate in TPS UI has been modified to no longer mention PKCS #7. The REST service itself still accepts PKCS #7, but it should be cleaned up in the future. https://fedorahosted.org/pki/ticket/2437 (cherry picked from commit d27d4600784acb49c42764d02835dedf3ee87227) (cherry picked from commit 2dae5f18fa5c68f7923b6b6691395790fb14791f) --- base/server/cms/src/org/dogtagpki/server/rest/UserService.java | 2 ++ base/tps/shared/webapps/tps/ui/user-certs.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/base/server/cms/src/org/dogtagpki/server/rest/UserService.java b/base/server/cms/src/org/dogtagpki/server/rest/UserService.java index 0893c4b..1f8e9fa 100644 --- a/base/server/cms/src/org/dogtagpki/server/rest/UserService.java +++ b/base/server/cms/src/org/dogtagpki/server/rest/UserService.java @@ -863,6 +863,8 @@ public class UserService extends PKIService implements UserResource { } if (cert == null) { + // TODO: Remove this code. Importing PKCS #7 is not supported. + // cert chain direction boolean assending = true; diff --git a/base/tps/shared/webapps/tps/ui/user-certs.html b/base/tps/shared/webapps/tps/ui/user-certs.html index 049583e..04593f3 100644 --- a/base/tps/shared/webapps/tps/ui/user-certs.html +++ b/base/tps/shared/webapps/tps/ui/user-certs.html @@ -93,7 +93,7 @@

- Enter a PEM certificate or PKCS #7 data. + Enter a PEM certificate.