diff --git a/lemur/certificates/service.py b/lemur/certificates/service.py index 08d23054..00669b34 100644 --- a/lemur/certificates/service.py +++ b/lemur/certificates/service.py @@ -248,6 +248,10 @@ def create(**kwargs): cert.owner = kwargs['owner'] + # we override the generated name if one is provided + if kwargs.get('name'): + cert.name = kwargs['name'] + database.create(cert) cert.description = kwargs['description'] g.user.certificates.append(cert) diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py index dd28f21e..cd2439b5 100644 --- a/lemur/certificates/views.py +++ b/lemur/certificates/views.py @@ -201,7 +201,8 @@ class CertificatesList(AuthenticatedResource): "validityEnd": "2015-06-16T07:00:00.000Z", "replacements": [ {'id': 123} - ] + ], + "name": "TestCertificate" } **Example response**: diff --git a/lemur/static/app/angular/certificates/certificate/tracking.tpl.html b/lemur/static/app/angular/certificates/certificate/tracking.tpl.html index 54176eae..6477b49f 100644 --- a/lemur/static/app/angular/certificates/certificate/tracking.tpl.html +++ b/lemur/static/app/angular/certificates/certificate/tracking.tpl.html @@ -1,140 +1,155 @@
-
-
- +
+
+ -
- +
+ -

You must - enter an Certificate owner

-
-
-
- +

+ You must enter an Certificate owner

+
+
+
+ +
+ +
+
+
+ -
+
-

You - must give a short description about this authority will be used for.

-
-
-
- - -
-
- +

You + must give a short description about this authority will be used for.

+
-
-
-
- +
+ -
- -
-
-
- +
+
+ +
+
+
+
+ -
- +
+ +
+
+
+ -

You must - enter a common name and it must be less than 64 characters

-
-
-
- -
- -
+
+ + +

+ You must + enter a common name and it must be less than 64 characters

+
+
+
+ +
+ +
- or - -
-
- +
+
+ -
-
+
+
-
-
-
- +
+
+
+ -
+
+
+
-
-
-
- -
- -

Enter a valid certificate signing request.

-
+

Enter a valid certificate signing request.

+
+
+
+
+
-
-
-
-