mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2026-10-21 04:40:43 +00:00
22 lines
411 B
Go
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"))
|
|
}
|