mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 05:41:10 +08:00
更新程序为单二进制文件
支持远程桌面连接 添加后台显示版本号 支持邮箱设置加密类型
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"crypto/rand"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"math/big"
|
||||
@@ -70,6 +71,11 @@ func WithDNS(key crypto.PrivateKey, cn string, sans ...string) (tls.Certificate,
|
||||
names = append(names, sans...)
|
||||
|
||||
template := x509.Certificate{
|
||||
Subject: pkix.Name{
|
||||
// TODO anylink
|
||||
Organization: []string{cn},
|
||||
OrganizationalUnit: names,
|
||||
},
|
||||
ExtKeyUsage: []x509.ExtKeyUsage{
|
||||
x509.ExtKeyUsageClientAuth,
|
||||
x509.ExtKeyUsageServerAuth,
|
||||
|
Reference in New Issue
Block a user