diff --git a/packages/bruno-app/src/components/Preferences/General/index.js b/packages/bruno-app/src/components/Preferences/General/index.js index bfdbbb3b4..addb72a4d 100644 --- a/packages/bruno-app/src/components/Preferences/General/index.js +++ b/packages/bruno-app/src/components/Preferences/General/index.js @@ -21,6 +21,9 @@ const General = ({ close }) => { enabled: Yup.boolean(), filePath: Yup.string().nullable() }), + keepDefaultCaCertificates: Yup.object({ + enabled: Yup.boolean() + }), storeCookies: Yup.boolean(), sendCookies: Yup.boolean(), timeout: Yup.mixed() @@ -43,6 +46,9 @@ const General = ({ close }) => { enabled: get(preferences, 'request.customCaCertificate.enabled', false), filePath: get(preferences, 'request.customCaCertificate.filePath', null) }, + keepDefaultCaCertificates: { + enabled: get(preferences, 'request.keepDefaultCaCertificates.enabled', false) + }, timeout: preferences.request.timeout, storeCookies: get(preferences, 'request.storeCookies', true), sendCookies: get(preferences, 'request.sendCookies', true) @@ -68,6 +74,9 @@ const General = ({ close }) => { enabled: newPreferences.customCaCertificate.enabled, filePath: newPreferences.customCaCertificate.filePath }, + keepDefaultCaCertificates: { + enabled: newPreferences.keepDefaultCaCertificates.enabled + }, timeout: newPreferences.timeout, storeCookies: newPreferences.storeCookies, sendCookies: newPreferences.sendCookies @@ -158,6 +167,23 @@ const General = ({ close }) => { )} +
+ + +
{ return get(getPreferences(), 'request.customCaCertificate.enabled', false); }, + shouldKeepDefaultCaCertificates: () => { + return get(getPreferences(), 'request.keepDefaultCaCertificates.enabled', false); + }, getCustomCaCertificateFilePath: () => { return get(getPreferences(), 'request.customCaCertificate.filePath', null); },