diff --git a/client/src/components/Settings/Encryption/Form.js b/client/src/components/Settings/Encryption/Form.js
index 65867986..b85bcfeb 100644
--- a/client/src/components/Settings/Encryption/Form.js
+++ b/client/src/components/Settings/Encryption/Form.js
@@ -278,15 +278,13 @@ let Form = (props) => {
-
-
- {
- (certificateChain || privateKey)
- && warning_validation
- && warning_validation
- }
-
-
+ {warning_validation &&
+
+
+ {warning_validation}
+
+
+ }
diff --git a/client/src/reducers/encryption.js b/client/src/reducers/encryption.js
index f3f2dd67..3f51b217 100644
--- a/client/src/reducers/encryption.js
+++ b/client/src/reducers/encryption.js
@@ -28,9 +28,27 @@ const encryption = handleActions({
[actions.validateTlsConfigRequest]: state => ({ ...state, processingValidate: true }),
[actions.validateTlsConfigFailure]: state => ({ ...state, processingValidate: false }),
[actions.validateTlsConfigSuccess]: (state, { payload }) => {
+ const {
+ issuer = '',
+ key_type = '',
+ not_after = '',
+ not_before = '',
+ subject = '',
+ warning_validation = '',
+ dns_names = '',
+ ...values
+ } = payload;
+
const newState = {
...state,
- ...payload,
+ ...values,
+ issuer,
+ key_type,
+ not_after,
+ not_before,
+ subject,
+ warning_validation,
+ dns_names,
processingValidate: false,
};
return newState;