增加OCSP Stapling功能

This commit is contained in:
刘祥超
2022-03-10 11:54:35 +08:00
parent 60690dfd01
commit 94287f5857
7 changed files with 310 additions and 49 deletions

View File

@@ -0,0 +1,19 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package tasks_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestSSLCertUpdateOCSPTask_Loop(t *testing.T) {
dbs.NotifyReady()
var task = tasks.NewSSLCertUpdateOCSPTask()
err := task.Loop()
if err != nil {
t.Fatal(err)
}
}