|
@@ -10,7 +10,6 @@ import (
|
|
|
"crypto/tls"
|
|
"crypto/tls"
|
|
|
"crypto/x509"
|
|
"crypto/x509"
|
|
|
"crypto/x509/pkix"
|
|
"crypto/x509/pkix"
|
|
|
- "encoding/asn1"
|
|
|
|
|
"encoding/hex"
|
|
"encoding/hex"
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
|
"encoding/pem"
|
|
"encoding/pem"
|
|
@@ -293,18 +292,6 @@ func WithCertificate(cert tls.Certificate) ClientOption {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var (
|
|
|
|
|
- stepOIDRoot = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 37476, 9000, 64}
|
|
|
|
|
- stepOIDProvisioner = append(asn1.ObjectIdentifier(nil), append(stepOIDRoot, 1)...)
|
|
|
|
|
-)
|
|
|
|
|
-
|
|
|
|
|
-type stepProvisionerASN1 struct {
|
|
|
|
|
- Type int
|
|
|
|
|
- Name []byte
|
|
|
|
|
- CredentialID []byte
|
|
|
|
|
- KeyValuePairs []string `asn1:"optional,omitempty"`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// WithAdminX5C will set the given file as the X5C certificate for use
|
|
// WithAdminX5C will set the given file as the X5C certificate for use
|
|
|
// by the client.
|
|
// by the client.
|
|
|
func WithAdminX5C(certs []*x509.Certificate, key interface{}, passwordFile string) ClientOption {
|
|
func WithAdminX5C(certs []*x509.Certificate, key interface{}, passwordFile string) ClientOption {
|