x509

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubjectAltNames

func GetSubjectAltNames(cert *x509.Certificate) []string

返回指定 x509.Certificate 对象的主题替代名称。

入参:

  • cert: x509.Certificate 对象。

出参:

  • 主题替代名称的字符串切片。

func GetSubjectCommonName

func GetSubjectCommonName(cert *x509.Certificate) string

返回指定 x509.Certificate 对象的主题名称。 如果主题名称为空,则返回第一个主题替代名称。

入参:

  • cert: x509.Certificate 对象。

出参:

  • 主题名称。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL