mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-23 15:33:03 +00:00
acb81ebe3d
* verify peer cert function for better man in the middle prevention * publish cert chain hash generation algorithm * added calculation of certificate hash as separate command and tlsping, use base64 to represent fingerprint to align with jsonPb * apply coding style * added test case for pinned certificates * refactored cert pin * pinned cert test * added json loading of the PinnedPeerCertificateChainSha256 * removed tool to prepare for v5 * Add server cert pinning for Xtls Change command "xray tls certChainHash" to xray style Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
19 lines
327 B
Go
19 lines
327 B
Go
package tls
|
|
|
|
import (
|
|
"github.com/xtls/xray-core/main/commands/base"
|
|
)
|
|
|
|
// CmdTLS holds all tls sub commands
|
|
var CmdTLS = &base.Command{
|
|
UsageLine: "{{.Exec}} tls",
|
|
Short: "TLS tools",
|
|
Long: `{{.Exec}} {{.LongName}} provides tools for TLS.
|
|
`,
|
|
Commands: []*base.Command{
|
|
cmdCert,
|
|
cmdPing,
|
|
cmdCertChainHash,
|
|
},
|
|
}
|