crypto/x509/pkix.Name.CommonName (field)
14 uses
crypto/x509/pkix (current package)
pkix.go#L127: SerialNumber, CommonName string
pkix.go#L161: n.CommonName = value
pkix.go#L234: if len(n.CommonName) > 0 {
pkix.go#L235: ret = n.appendRDNs(ret, []string{n.CommonName}, oidCommonName)
crypto/x509
verify.go#L112: if !c.hasSANExtension() && matchHostnames(c.Subject.CommonName, h.Host) {
verify.go#L113: if !ignoreCN && !validHostnamePattern(c.Subject.CommonName) {
verify.go#L115: return "x509: Common Name is not a valid hostname: " + c.Subject.CommonName
verify.go#L117: if ignoreCN && validHostnamePattern(c.Subject.CommonName) {
verify.go#L138: valid = c.Subject.CommonName
verify.go#L164: certName := e.hintCert.Subject.CommonName
verify.go#L972: return !ignoreCN && !c.hasSANExtension() && validHostnamePattern(c.Subject.CommonName)
verify.go#L1072: names = []string{c.Subject.CommonName}
crypto/tls
common.go#L1267: if x509Cert.Subject.CommonName != "" && len(x509Cert.DNSNames) == 0 {
common.go#L1268: c.NameToCertificate[x509Cert.Subject.CommonName] = cert
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |