*Several bug fixes with saving and loading
This commit is contained in:
parent
4b6e1d32f5
commit
fa8668b8c8
|
@ -57,7 +57,6 @@ export async function saveSSl(): Promise<void> {
|
||||||
|
|
||||||
let oldCert = await getSslCert();
|
let oldCert = await getSslCert();
|
||||||
let cert: any = getSsl()?.cert;
|
let cert: any = getSsl()?.cert;
|
||||||
cert = cert?.fileData;
|
|
||||||
if (oldCert) {
|
if (oldCert) {
|
||||||
await overwriteIndependentFileSmall(
|
await overwriteIndependentFileSmall(
|
||||||
oldCert as IndependentFileSmall,
|
oldCert as IndependentFileSmall,
|
||||||
|
@ -68,8 +67,7 @@ export async function saveSSl(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let oldKey = await getSslKey();
|
let oldKey = await getSslKey();
|
||||||
let key: any = getSsl()?.cert;
|
let key: any = getSsl()?.key;
|
||||||
key = key?.fileData;
|
|
||||||
|
|
||||||
if (oldKey) {
|
if (oldKey) {
|
||||||
await overwriteIndependentFileSmall(
|
await overwriteIndependentFileSmall(
|
||||||
|
|
Loading…
Reference in New Issue