Files
trojan-go/cert/cert_test.go
T
2020-03-27 02:07:41 -04:00

22 lines
411 B
Go

package cert
import (
"testing"
"github.com/p4gefau1t/trojan-go/common"
)
func TestCreate(t *testing.T) {
caDir = "https://127.0.0.1:14000/dir"
tlsPort = "5001"
httpPort = "5002"
common.Must(RequestCert("localhost", "test@email.com"))
}
func TestRenew(t *testing.T) {
caDir = "https://127.0.0.1:14000/dir"
tlsPort = "5001"
httpPort = "5002"
common.Must(RenewCert("localhost", "test@email.com"))
}