|
@@ -25,23 +25,29 @@ import (
|
|
|
"imuslab.com/zoraxy/mod/utils"
|
|
|
)
|
|
|
|
|
|
-
|
|
|
+
|
|
|
type ACMEUser struct {
|
|
|
Email string
|
|
|
Registration *registration.Resource
|
|
|
key crypto.PrivateKey
|
|
|
}
|
|
|
|
|
|
+
|
|
|
func (u *ACMEUser) GetEmail() string {
|
|
|
return u.Email
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
func (u ACMEUser) GetRegistration() *registration.Resource {
|
|
|
return u.Registration
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
func (u *ACMEUser) GetPrivateKey() crypto.PrivateKey {
|
|
|
return u.key
|
|
|
}
|
|
|
|
|
|
+
|
|
|
type ACMEHandler struct {
|
|
|
email string
|
|
|
acmeServer string
|