Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrossSignedDER ¶
func GetCrossSignedDER(rootCommonNamePrefix string, intermediateCommonNamePrefix string, excludedDomain string, originalDERBytes []byte) ([]byte, []byte, []byte, error)
GetCrossSignedDER generates and returns a root CA, intermediate CA, cross-signed CA, and error. The root CA and intermediate CA have a Subject CommonName obtained by prepending rootCommonNamePrefix and intermediateCommonNamePrefix to the Subject CommonName in the certificate encoded in originalDERBytes. The intermediate CA is signed by the root CA, and has a name constraint DNS name exclusion of excludedDomain. The cross-signed CA is signed by the intermediate CA, but is otherwise identical to the certificate encoded in originalDERBytes.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.