From 532a4b033669497d972683320e3d1d6dde1943f6 Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Fri, 27 Mar 2020 11:00:50 -0700
Subject: Add generate CSR to SSL certificates page

Adds ability to generate, then download or copy a CSR from the GUI

- Import FormTagsPlugin to use for alternate names field

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I060e8d7917a79dafbfb67c758f5baa4a36ab86ae
---
 src/views/AccessControl/SslCertificates/SslCertificates.vue | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'src/views/AccessControl/SslCertificates/SslCertificates.vue')

diff --git a/src/views/AccessControl/SslCertificates/SslCertificates.vue b/src/views/AccessControl/SslCertificates/SslCertificates.vue
index 313b3218..79cdea65 100644
--- a/src/views/AccessControl/SslCertificates/SslCertificates.vue
+++ b/src/views/AccessControl/SslCertificates/SslCertificates.vue
@@ -32,7 +32,11 @@
       </b-col>
     </b-row>
     <b-row>
-      <b-col xl="9" class="text-right">
+      <b-col xl="10" class="text-right">
+        <b-button v-b-modal.generate-csr variant="link">
+          <icon-add />
+          {{ $t('pageSslCertificates.generateCsr') }}
+        </b-button>
         <b-button
           variant="primary"
           :disabled="certificatesForUpload.length === 0"
@@ -44,7 +48,7 @@
       </b-col>
     </b-row>
     <b-row>
-      <b-col xl="9">
+      <b-col xl="10">
         <b-table :fields="fields" :items="tableItems">
           <template v-slot:cell(validFrom)="{ value }">
             {{ value | formatDate }}
@@ -79,6 +83,7 @@
 
     <!-- Modals -->
     <modal-upload-certificate :certificate="modalCertificate" @ok="onModalOk" />
+    <modal-generate-csr />
   </b-container>
 </template>
 
@@ -87,6 +92,7 @@ import IconAdd from '@carbon/icons-vue/es/add--alt/20';
 import IconReplace from '@carbon/icons-vue/es/renew/20';
 import IconTrashcan from '@carbon/icons-vue/es/trash-can/20';
 
+import ModalGenerateCsr from './ModalGenerateCsr';
 import ModalUploadCertificate from './ModalUploadCertificate';
 import PageTitle from '../../../components/Global/PageTitle';
 import TableRowAction from '../../../components/Global/TableRowAction';
@@ -102,6 +108,7 @@ export default {
     IconAdd,
     IconReplace,
     IconTrashcan,
+    ModalGenerateCsr,
     ModalUploadCertificate,
     PageTitle,
     StatusIcon,
-- 
cgit v1.2.3

