Documentation ¶
Index ¶
Constants ¶
View Source
const ClientCertForTest = `` /* 1070-byte string literal not displayed */
View Source
const ExpiredCertForTest = `` /* 1070-byte string literal not displayed */
View Source
const IntermediateCertForTest = `` /* 1021-byte string literal not displayed */
View Source
const RevokedCertForTest = `` /* 1066-byte string literal not displayed */
View Source
const RootCertForTest = `` /* 952-byte string literal not displayed */
View Source
const TestCertPemBytes = `` /* 924-byte string literal not displayed */
Variables ¶
View Source
var TestCertTemplate = x509.Certificate{ Version: 1, SerialNumber: big.NewInt(3), IsCA: false, SubjectKeyId: []byte{7, 8, 9}, Subject: pkix.Name{ Country: []string{"KR"}, Province: []string{"Seoul"}, PostalCode: []string{"12312"}, StreetAddress: []string{"street123"}, Organization: []string{"it-chain co"}, OrganizationalUnit: []string{"Development Division", "Authentication Team"}, CommonName: string("it-chain dev-auth"), }, CRLDistributionPoints: []string{"CRL distribution URL"}, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Hour * 24 * 180), KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, BasicConstraintsValid: true, }
View Source
var TestExpiredCertTemplate = x509.Certificate{ Version: 1, SerialNumber: big.NewInt(101), IsCA: false, SubjectKeyId: []byte{7, 8, 9}, Subject: pkix.Name{ Country: []string{"KR"}, Province: []string{"Seoul"}, PostalCode: []string{"12312"}, StreetAddress: []string{"street123"}, Organization: []string{"it-chain co"}, OrganizationalUnit: []string{"Development Division", "Authentication Team"}, CommonName: string("it-chain dev-auth"), }, CRLDistributionPoints: []string{"CRL distribution URL"}, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Second * 5), KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, BasicConstraintsValid: true, }
View Source
var TestIntermediateCertTemplate = x509.Certificate{ Version: 1, SerialNumber: big.NewInt(2), IsCA: true, SubjectKeyId: []byte{4, 5, 6}, Subject: pkix.Name{ Country: []string{"KR"}, Province: []string{"Seoul"}, PostalCode: []string{"12312"}, StreetAddress: []string{"street123"}, Organization: []string{"it-chain co"}, OrganizationalUnit: []string{"development division"}, CommonName: string("it-chain dev"), }, CRLDistributionPoints: []string{"CRL distribution URL"}, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Hour * 24 * 180), KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, BasicConstraintsValid: true, }
View Source
var TestRevokedCertTemplate = x509.Certificate{ Version: 1, SerialNumber: big.NewInt(44), IsCA: false, SubjectKeyId: []byte{7, 8, 9}, Subject: pkix.Name{ Country: []string{"KR"}, Province: []string{"Seoul"}, PostalCode: []string{"12312"}, StreetAddress: []string{"street123"}, Organization: []string{"it-chain co"}, OrganizationalUnit: []string{"Development Division", "Authentication Team"}, CommonName: string("it-chain dev-auth"), }, CRLDistributionPoints: []string{"CRL distribution URL"}, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Hour * 24 * 180), KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, BasicConstraintsValid: true, }
View Source
var TestRootCertTemplate = x509.Certificate{ Version: 1, SerialNumber: big.NewInt(1), IsCA: true, SubjectKeyId: []byte{1, 2, 3}, Subject: pkix.Name{ Country: []string{"KR"}, Province: []string{"Seoul"}, PostalCode: []string{"12312"}, StreetAddress: []string{"street123"}, Organization: []string{"it-chain co"}, OrganizationalUnit: []string{"it-chain co"}, CommonName: string("it-chain central"), }, CRLDistributionPoints: []string{"CRL distribution URL"}, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Hour * 24 * 180), KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth}, BasicConstraintsValid: true, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.