diff --git a/client.go b/client.go index 3ca0f9fd..2cfa5edf 100644 --- a/client.go +++ b/client.go @@ -19,12 +19,13 @@ package vcert import ( "crypto/x509" "fmt" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/venafi/cloud" - "github.com/Venafi/vcert/v4/pkg/venafi/fake" - "github.com/Venafi/vcert/v4/pkg/venafi/tpp" - "github.com/Venafi/vcert/v4/pkg/verror" "log" + + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/venafi/cloud" + "github.com/Venafi/vcert/v5/pkg/venafi/fake" + "github.com/Venafi/vcert/v5/pkg/venafi/tpp" + "github.com/Venafi/vcert/v5/pkg/verror" ) type newClientArgs struct { diff --git a/client_test.go b/client_test.go index 9383350b..a9370bd2 100644 --- a/client_test.go +++ b/client_test.go @@ -21,13 +21,14 @@ import ( "crypto/x509/pkix" "encoding/json" "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" "io/ioutil" "net/http" "os" "testing" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) func init() { diff --git a/cmd/vcert/args.go b/cmd/vcert/args.go index 21b42fa5..d4c92b4b 100644 --- a/cmd/vcert/args.go +++ b/cmd/vcert/args.go @@ -17,7 +17,7 @@ package main import ( - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" ) const ( diff --git a/cmd/vcert/commands.go b/cmd/vcert/commands.go index 09070c79..dcbbc076 100644 --- a/cmd/vcert/commands.go +++ b/cmd/vcert/commands.go @@ -31,19 +31,18 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/venafi/cloud" - "github.com/Venafi/vcert/v4/pkg/venafi/fake" - "github.com/Venafi/vcert/v4/pkg/venafi/tpp" - - "github.com/Venafi/vcert/v4/pkg/policy" - "github.com/Venafi/vcert/v4/pkg/util" - "gopkg.in/yaml.v2" - - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" "github.com/urfave/cli/v2" "golang.org/x/crypto/pkcs12" + "gopkg.in/yaml.v2" + + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/venafi/cloud" + "github.com/Venafi/vcert/v5/pkg/venafi/fake" + "github.com/Venafi/vcert/v5/pkg/venafi/tpp" ) var ( diff --git a/cmd/vcert/config.go b/cmd/vcert/config.go index 8cabba68..ee95e2a2 100644 --- a/cmd/vcert/config.go +++ b/cmd/vcert/config.go @@ -25,8 +25,8 @@ import ( "github.com/urfave/cli/v2" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/endpoint" + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) func buildConfig(c *cli.Context, flags *commandFlags) (cfg vcert.Config, err error) { diff --git a/cmd/vcert/generate_test.go b/cmd/vcert/generate_test.go index e81d1d97..89bb184e 100644 --- a/cmd/vcert/generate_test.go +++ b/cmd/vcert/generate_test.go @@ -24,7 +24,7 @@ import ( "os" "testing" - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" ) func TestGenerateCsrForCommandGenCsr(t *testing.T) { diff --git a/cmd/vcert/main.go b/cmd/vcert/main.go index 8b7d056d..338c2015 100644 --- a/cmd/vcert/main.go +++ b/cmd/vcert/main.go @@ -25,7 +25,7 @@ import ( "github.com/urfave/cli/v2" - "github.com/Venafi/vcert/v4" + "github.com/Venafi/vcert/v5" ) var ( diff --git a/cmd/vcert/main_test.go b/cmd/vcert/main_test.go index 9c32b6bc..1fb745bd 100644 --- a/cmd/vcert/main_test.go +++ b/cmd/vcert/main_test.go @@ -32,8 +32,8 @@ import ( "testing" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) var testEmail = "test@vcert.test" diff --git a/cmd/vcert/playbook.go b/cmd/vcert/playbook.go index c67c5bf9..402aceb8 100644 --- a/cmd/vcert/playbook.go +++ b/cmd/vcert/playbook.go @@ -27,10 +27,10 @@ import ( "go.uber.org/zap" "golang.org/x/crypto/pkcs12" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/app/parser" - "github.com/Venafi/vcert/v4/pkg/playbook/app/service" - "github.com/Venafi/vcert/v4/pkg/playbook/util" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/parser" + "github.com/Venafi/vcert/v5/pkg/playbook/app/service" + "github.com/Venafi/vcert/v5/pkg/playbook/util" ) const ( diff --git a/cmd/vcert/playbook_test.go b/cmd/vcert/playbook_test.go index e950bbd7..0948707a 100644 --- a/cmd/vcert/playbook_test.go +++ b/cmd/vcert/playbook_test.go @@ -14,7 +14,7 @@ import ( "go.uber.org/zap/zapcore" "golang.org/x/crypto/pkcs12" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) type logLine struct { diff --git a/cmd/vcert/result_writer.go b/cmd/vcert/result_writer.go index 1945ebdc..a6cc1be6 100644 --- a/cmd/vcert/result_writer.go +++ b/cmd/vcert/result_writer.go @@ -30,8 +30,8 @@ import ( "github.com/pavel-v-chernykh/keystore-go/v4" "software.sslmate.com/src/go-pkcs12" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/util" ) type Config struct { diff --git a/cmd/vcert/result_writer_test.go b/cmd/vcert/result_writer_test.go index d1fcbcb4..a53671dd 100644 --- a/cmd/vcert/result_writer_test.go +++ b/cmd/vcert/result_writer_test.go @@ -19,7 +19,7 @@ package main import ( "testing" - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" ) var ( diff --git a/cmd/vcert/test_utils.go b/cmd/vcert/test_utils.go index 216a006e..a6508a29 100644 --- a/cmd/vcert/test_utils.go +++ b/cmd/vcert/test_utils.go @@ -1,8 +1,9 @@ package main import ( - "github.com/urfave/cli/v2" "os" + + "github.com/urfave/cli/v2" ) const ( diff --git a/cmd/vcert/utils.go b/cmd/vcert/utils.go index 57030f2d..3cb976dd 100644 --- a/cmd/vcert/utils.go +++ b/cmd/vcert/utils.go @@ -32,13 +32,13 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/util" - + "github.com/Venafi/vcert/v5" "github.com/spf13/viper" "github.com/urfave/cli/v2" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/util" ) const ( diff --git a/cmd/vcert/validators.go b/cmd/vcert/validators.go index 84d4bcf7..dee937c7 100644 --- a/cmd/vcert/validators.go +++ b/cmd/vcert/validators.go @@ -23,9 +23,8 @@ import ( "regexp" "strings" - "github.com/Venafi/vcert/v4/pkg/util" - - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/util" ) // RevocationReasonOptions is an array of strings containing reasons for certificate revocation diff --git a/config.go b/config.go index f5f6c317..08321124 100644 --- a/config.go +++ b/config.go @@ -24,8 +24,9 @@ import ( "os/user" "path/filepath" - "github.com/Venafi/vcert/v4/pkg/endpoint" "gopkg.in/ini.v1" + + "github.com/Venafi/vcert/v5/pkg/endpoint" ) // Config is a basic structure for high level initiating connector to Trust Platform (TPP)/Venafi Cloud diff --git a/examples/server/main.go b/examples/server/main.go index 8cb82bdd..e0ea12ff 100644 --- a/examples/server/main.go +++ b/examples/server/main.go @@ -2,12 +2,13 @@ package main import ( "fmt" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/endpoint" "io/ioutil" "log" "net/http" "os" + + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) func main() { diff --git a/examples/simple-cli/main.go b/examples/simple-cli/main.go index f3874231..35bcadc9 100644 --- a/examples/simple-cli/main.go +++ b/examples/simple-cli/main.go @@ -22,10 +22,6 @@ import ( "crypto/x509/pkix" "encoding/pem" "fmt" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/venafi/tpp" "io/ioutil" t "log" "math/big" @@ -33,6 +29,11 @@ import ( "os" "strings" "time" + + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/venafi/tpp" ) func main() { diff --git a/examples/simple-cli/main_test.go b/examples/simple-cli/main_test.go index 27f43013..be0b0c15 100644 --- a/examples/simple-cli/main_test.go +++ b/examples/simple-cli/main_test.go @@ -21,12 +21,13 @@ import ( "crypto/x509" "crypto/x509/pkix" "encoding/pem" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/test" "net/http" "testing" "time" + + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/test" ) var effectiveConfig *vcert.Config diff --git a/examples/simple-cli/vars.go b/examples/simple-cli/vars.go index 7d3831b5..37250736 100644 --- a/examples/simple-cli/vars.go +++ b/examples/simple-cli/vars.go @@ -19,11 +19,12 @@ package main import ( "encoding/json" "fmt" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/endpoint" "io/ioutil" "log" "os" + + "github.com/Venafi/vcert/v5" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) var mockConfig, cloudConfig, tppConfig *vcert.Config diff --git a/go.mod b/go.mod index 137d6b95..269bb51a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Venafi/vcert/v4 +module github.com/Venafi/vcert/v5 require ( github.com/google/uuid v1.3.0 diff --git a/listener.go b/listener.go index ede829b0..5479a551 100644 --- a/listener.go +++ b/listener.go @@ -4,12 +4,13 @@ import ( "crypto/tls" "crypto/x509/pkix" "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/util" "log" "net" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/util" ) // NewListener returns a net.Listener that listens on the first port diff --git a/listener_test.go b/listener_test.go index 4371283a..6f6bdcdd 100644 --- a/listener_test.go +++ b/listener_test.go @@ -4,12 +4,13 @@ import ( "crypto/tls" "crypto/x509" "fmt" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/venafi/fake" "io/ioutil" "net/http" "testing" "time" + + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/venafi/fake" ) func TestConfig_NewListener(t *testing.T) { diff --git a/pkg/certificate/certificate.go b/pkg/certificate/certificate.go index e2b6123c..923a5020 100644 --- a/pkg/certificate/certificate.go +++ b/pkg/certificate/certificate.go @@ -32,8 +32,8 @@ import ( "github.com/youmark/pkcs8" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" ) const ( diff --git a/pkg/certificate/certificateCollection.go b/pkg/certificate/certificateCollection.go index af93a76f..d6e9af5e 100644 --- a/pkg/certificate/certificateCollection.go +++ b/pkg/certificate/certificateCollection.go @@ -23,7 +23,7 @@ import ( "encoding/pem" "fmt" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/verror" ) // PEMCollection represents a collection of PEM data diff --git a/pkg/certificate/certificate_test.go b/pkg/certificate/certificate_test.go index 14ac13ac..0777ed21 100644 --- a/pkg/certificate/certificate_test.go +++ b/pkg/certificate/certificate_test.go @@ -30,7 +30,7 @@ import ( "testing" "time" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/util" ) func getCertificateRequestForTest() *Request { diff --git a/pkg/certificate/keyType.go b/pkg/certificate/keyType.go index 83e102af..7f3aa321 100644 --- a/pkg/certificate/keyType.go +++ b/pkg/certificate/keyType.go @@ -5,8 +5,9 @@ import ( "fmt" "strings" - "github.com/Venafi/vcert/v4/pkg/verror" "gopkg.in/yaml.v3" + + "github.com/Venafi/vcert/v5/pkg/verror" ) // KeyType represents the types of supported keys diff --git a/pkg/certificate/request.go b/pkg/certificate/request.go index 819705c8..56c53c63 100644 --- a/pkg/certificate/request.go +++ b/pkg/certificate/request.go @@ -15,8 +15,8 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" ) // Request contains data needed to generate a certificate request diff --git a/pkg/endpoint/endpoint.go b/pkg/endpoint/endpoint.go index 4c525dfc..f2df9bed 100644 --- a/pkg/endpoint/endpoint.go +++ b/pkg/endpoint/endpoint.go @@ -29,9 +29,8 @@ import ( "regexp" "time" - "github.com/Venafi/vcert/v4/pkg/policy" - - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/policy" ) const SDKName = "Venafi VCert-Go" diff --git a/pkg/endpoint/endpoint_test.go b/pkg/endpoint/endpoint_test.go index 3b4c3a9e..e4ae0205 100644 --- a/pkg/endpoint/endpoint_test.go +++ b/pkg/endpoint/endpoint_test.go @@ -22,7 +22,7 @@ import ( "strings" "testing" - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" ) func TestNewZoneConfiguration(t *testing.T) { diff --git a/pkg/endpoint/endpoint_validator_test.go b/pkg/endpoint/endpoint_validator_test.go index cfda358c..eafde2ef 100644 --- a/pkg/endpoint/endpoint_validator_test.go +++ b/pkg/endpoint/endpoint_validator_test.go @@ -2,8 +2,9 @@ package endpoint import ( "crypto/x509/pkix" - "github.com/Venafi/vcert/v4/pkg/certificate" "testing" + + "github.com/Venafi/vcert/v5/pkg/certificate" ) var any = []string{`.*`} diff --git a/pkg/playbook/app/domain/connection.go b/pkg/playbook/app/domain/connection.go index c73beae0..e050ab6b 100644 --- a/pkg/playbook/app/domain/connection.go +++ b/pkg/playbook/app/domain/connection.go @@ -21,7 +21,7 @@ import ( "fmt" "os" - "github.com/Venafi/vcert/v4/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) // Connection represents the issuer that vCert will connect to diff --git a/pkg/playbook/app/domain/connection_test.go b/pkg/playbook/app/domain/connection_test.go index 701c957b..9ea3ab61 100644 --- a/pkg/playbook/app/domain/connection_test.go +++ b/pkg/playbook/app/domain/connection_test.go @@ -20,8 +20,9 @@ import ( "fmt" "testing" - "github.com/Venafi/vcert/v4/pkg/endpoint" "github.com/stretchr/testify/suite" + + "github.com/Venafi/vcert/v5/pkg/endpoint" ) type ConnectionSuite struct { diff --git a/pkg/playbook/app/domain/playbookRequest.go b/pkg/playbook/app/domain/playbookRequest.go index fc7e5811..e76218b3 100644 --- a/pkg/playbook/app/domain/playbookRequest.go +++ b/pkg/playbook/app/domain/playbookRequest.go @@ -17,8 +17,8 @@ package domain import ( - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/util" ) // PlaybookRequest Contains data needed to generate a certificate request diff --git a/pkg/playbook/app/installer/capi.go b/pkg/playbook/app/installer/capi.go index a725b361..c968d6ed 100644 --- a/pkg/playbook/app/installer/capi.go +++ b/pkg/playbook/app/installer/capi.go @@ -24,10 +24,10 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/util" - "github.com/Venafi/vcert/v4/pkg/playbook/util/capistore" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/util" + "github.com/Venafi/vcert/v5/pkg/playbook/util/capistore" ) // CAPIInstaller represents an installation that will happen in the Windows CAPI store diff --git a/pkg/playbook/app/installer/crypto.go b/pkg/playbook/app/installer/crypto.go index 8857f8bb..e1919460 100644 --- a/pkg/playbook/app/installer/crypto.go +++ b/pkg/playbook/app/installer/crypto.go @@ -29,9 +29,9 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/vcertutil" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/vcertutil" + "github.com/Venafi/vcert/v5/pkg/util" ) // DayDuration represents a day (24 hours) in the Duration type diff --git a/pkg/playbook/app/installer/installer.go b/pkg/playbook/app/installer/installer.go index 815c84ca..16614a67 100644 --- a/pkg/playbook/app/installer/installer.go +++ b/pkg/playbook/app/installer/installer.go @@ -17,8 +17,8 @@ package installer import ( - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) // Installer represents the interface for all installers. diff --git a/pkg/playbook/app/installer/jks.go b/pkg/playbook/app/installer/jks.go index 3a33d2a1..d6696f98 100644 --- a/pkg/playbook/app/installer/jks.go +++ b/pkg/playbook/app/installer/jks.go @@ -27,9 +27,9 @@ import ( "github.com/pavel-v-chernykh/keystore-go/v4" "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/util" ) // JKSInstaller represents an installation that will use the Java KeyStore format for the certificate bundle diff --git a/pkg/playbook/app/installer/pem.go b/pkg/playbook/app/installer/pem.go index 0f9f30d0..f16a947f 100644 --- a/pkg/playbook/app/installer/pem.go +++ b/pkg/playbook/app/installer/pem.go @@ -22,10 +22,10 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/app/vcertutil" - "github.com/Venafi/vcert/v4/pkg/playbook/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/vcertutil" + "github.com/Venafi/vcert/v5/pkg/playbook/util" ) // PEMInstaller represents an installation that will use the PEM format for the certificate bundle diff --git a/pkg/playbook/app/installer/pkcs12.go b/pkg/playbook/app/installer/pkcs12.go index a0a52a47..09cac43b 100644 --- a/pkg/playbook/app/installer/pkcs12.go +++ b/pkg/playbook/app/installer/pkcs12.go @@ -26,9 +26,9 @@ import ( "go.uber.org/zap" "software.sslmate.com/src/go-pkcs12" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/util" ) // PKCS12Installer represents an installation that will use the PKCS12 format for the certificate bundle diff --git a/pkg/playbook/app/installer/selector.go b/pkg/playbook/app/installer/selector.go index 99209bc4..57a3d8c3 100644 --- a/pkg/playbook/app/installer/selector.go +++ b/pkg/playbook/app/installer/selector.go @@ -23,7 +23,7 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) // GetInstaller returns a proper installer according to the type defined in inst diff --git a/pkg/playbook/app/installer/selector_windows.go b/pkg/playbook/app/installer/selector_windows.go index b7d42d3d..442d9d0a 100644 --- a/pkg/playbook/app/installer/selector_windows.go +++ b/pkg/playbook/app/installer/selector_windows.go @@ -23,7 +23,7 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) // GetInstaller returns a proper installer according to the type defined in inst diff --git a/pkg/playbook/app/parser/reader.go b/pkg/playbook/app/parser/reader.go index a1333e17..55f6d689 100644 --- a/pkg/playbook/app/parser/reader.go +++ b/pkg/playbook/app/parser/reader.go @@ -26,7 +26,7 @@ import ( "go.uber.org/zap" "gopkg.in/yaml.v3" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) var errorTemplate = "%w: %s" diff --git a/pkg/playbook/app/parser/writer_test.go b/pkg/playbook/app/parser/writer_test.go index 87ceaa17..ab2dd418 100644 --- a/pkg/playbook/app/parser/writer_test.go +++ b/pkg/playbook/app/parser/writer_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" ) type WriterSuite struct { diff --git a/pkg/playbook/app/service/service.go b/pkg/playbook/app/service/service.go index 38a4b15b..b32d35d9 100644 --- a/pkg/playbook/app/service/service.go +++ b/pkg/playbook/app/service/service.go @@ -25,10 +25,10 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/app/installer" - "github.com/Venafi/vcert/v4/pkg/playbook/app/vcertutil" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/installer" + "github.com/Venafi/vcert/v5/pkg/playbook/app/vcertutil" ) // DefaultRenew represents the duration before certificate expiration in which renewal should be attempted diff --git a/pkg/playbook/app/service/service_test.go b/pkg/playbook/app/service/service_test.go index b7a7d46d..44d879ba 100644 --- a/pkg/playbook/app/service/service_test.go +++ b/pkg/playbook/app/service/service_test.go @@ -22,9 +22,9 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/util" ) type ServiceSuite struct { diff --git a/pkg/playbook/app/service/tokenService.go b/pkg/playbook/app/service/tokenService.go index 00477ce2..c815f9e7 100644 --- a/pkg/playbook/app/service/tokenService.go +++ b/pkg/playbook/app/service/tokenService.go @@ -21,9 +21,9 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/playbook/app/parser" - "github.com/Venafi/vcert/v4/pkg/playbook/app/vcertutil" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/playbook/app/parser" + "github.com/Venafi/vcert/v5/pkg/playbook/app/vcertutil" ) // ValidateTPPCredentials checks that the TPP credentials are not expired. diff --git a/pkg/playbook/app/vcertutil/helper.go b/pkg/playbook/app/vcertutil/helper.go index a81f448a..431e208a 100644 --- a/pkg/playbook/app/vcertutil/helper.go +++ b/pkg/playbook/app/vcertutil/helper.go @@ -28,9 +28,9 @@ import ( "go.uber.org/zap" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/util" ) const ( diff --git a/pkg/playbook/app/vcertutil/vcertutil.go b/pkg/playbook/app/vcertutil/vcertutil.go index 8ddbea12..84fbd7c5 100644 --- a/pkg/playbook/app/vcertutil/vcertutil.go +++ b/pkg/playbook/app/vcertutil/vcertutil.go @@ -22,14 +22,14 @@ import ( "fmt" "time" + "github.com/Venafi/vcert/v5" "go.uber.org/zap" - "github.com/Venafi/vcert/v4" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/playbook/app/domain" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/venafi/tpp" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/playbook/app/domain" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/venafi/tpp" ) // EnrollCertificate takes a Request object and requests a certificate to the Venafi platform defined by config. diff --git a/pkg/policy/constants.go b/pkg/policy/constants.go index 5f78c5db..0e1691c6 100644 --- a/pkg/policy/constants.go +++ b/pkg/policy/constants.go @@ -1,6 +1,6 @@ package policy -import "github.com/Venafi/vcert/v4/pkg/util" +import "github.com/Venafi/vcert/v5/pkg/util" const ( JsonExtension = ".json" diff --git a/pkg/policy/policySpecification_test.go b/pkg/policy/policySpecification_test.go index 3244360a..384e1557 100644 --- a/pkg/policy/policySpecification_test.go +++ b/pkg/policy/policySpecification_test.go @@ -3,12 +3,13 @@ package policy import ( "encoding/json" "fmt" - "github.com/smartystreets/assertions" - "gopkg.in/yaml.v2" t "log" "path/filepath" "strings" "testing" + + "github.com/smartystreets/assertions" + "gopkg.in/yaml.v2" ) func getPolicySpecificationFromFile(f string) *PolicySpecification { diff --git a/pkg/util/sshKeyGenerator.go b/pkg/util/sshKeyGenerator.go index 0df18487..6782deca 100644 --- a/pkg/util/sshKeyGenerator.go +++ b/pkg/util/sshKeyGenerator.go @@ -6,10 +6,10 @@ import ( "crypto/x509" "encoding/pem" "fmt" - "github.com/youmark/pkcs8" "log" "strings" + "github.com/youmark/pkcs8" "golang.org/x/crypto/ssh" ) diff --git a/pkg/util/sshKeyGenerator_test.go b/pkg/util/sshKeyGenerator_test.go index 27fc0213..e4da6fdd 100644 --- a/pkg/util/sshKeyGenerator_test.go +++ b/pkg/util/sshKeyGenerator_test.go @@ -2,8 +2,9 @@ package util import ( "fmt" - "github.com/smartystreets/assertions" "testing" + + "github.com/smartystreets/assertions" ) func TestGenerateSshKeyPair(t *testing.T) { diff --git a/pkg/util/utils.go b/pkg/util/utils.go index 95656d0d..89b187c9 100644 --- a/pkg/util/utils.go +++ b/pkg/util/utils.go @@ -8,8 +8,9 @@ import ( "encoding/json" "encoding/pem" "fmt" - "github.com/youmark/pkcs8" "time" + + "github.com/youmark/pkcs8" ) const LegacyPem = "legacy-pem" diff --git a/pkg/venafi/cloud/certificatePolicies.go b/pkg/venafi/cloud/certificatePolicies.go index 88989994..f2402a24 100644 --- a/pkg/venafi/cloud/certificatePolicies.go +++ b/pkg/venafi/cloud/certificatePolicies.go @@ -20,8 +20,8 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) type certificateTemplate struct { diff --git a/pkg/venafi/cloud/cloud.go b/pkg/venafi/cloud/cloud.go index 75d8197c..eea389e6 100644 --- a/pkg/venafi/cloud/cloud.go +++ b/pkg/venafi/cloud/cloud.go @@ -31,11 +31,11 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/policy" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" ) type apiKey struct { diff --git a/pkg/venafi/cloud/cloudUtil.go b/pkg/venafi/cloud/cloudUtil.go index 17363c8a..243a9e53 100644 --- a/pkg/venafi/cloud/cloudUtil.go +++ b/pkg/venafi/cloud/cloudUtil.go @@ -3,10 +3,11 @@ package cloud import ( "encoding/json" "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/util" "net/http" "regexp" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/util" ) func parseCertificateInfo(httpStatusCode int, httpStatus string, body []byte) (*managedCertificate, error) { diff --git a/pkg/venafi/cloud/cloud_test.go b/pkg/venafi/cloud/cloud_test.go index b556c38c..8fce8af0 100644 --- a/pkg/venafi/cloud/cloud_test.go +++ b/pkg/venafi/cloud/cloud_test.go @@ -21,7 +21,7 @@ import ( "regexp" "testing" - "github.com/Venafi/vcert/v4/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/certificate" ) var ( diff --git a/pkg/venafi/cloud/company.go b/pkg/venafi/cloud/company.go index a8d62187..f3c234aa 100644 --- a/pkg/venafi/cloud/company.go +++ b/pkg/venafi/cloud/company.go @@ -17,8 +17,9 @@ package cloud import ( - "github.com/Venafi/vcert/v4/pkg/endpoint" "time" + + "github.com/Venafi/vcert/v5/pkg/endpoint" ) type company struct { diff --git a/pkg/venafi/cloud/connector.go b/pkg/venafi/cloud/connector.go index 33caaf18..8c7e738a 100644 --- a/pkg/venafi/cloud/connector.go +++ b/pkg/venafi/cloud/connector.go @@ -35,11 +35,11 @@ import ( "golang.org/x/crypto/nacl/box" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/policy" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" ) type urlResource string diff --git a/pkg/venafi/cloud/connector_test.go b/pkg/venafi/cloud/connector_test.go index 2bea29a2..8436f3db 100644 --- a/pkg/venafi/cloud/connector_test.go +++ b/pkg/venafi/cloud/connector_test.go @@ -36,13 +36,12 @@ import ( "testing" "time" - "github.com/Venafi/vcert/v4/pkg/policy" - - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/util" - "github.com/Venafi/vcert/v4/pkg/verror" - "github.com/Venafi/vcert/v4/test" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" + "github.com/Venafi/vcert/v5/test" ) var ctx *test.Context diff --git a/pkg/venafi/cloud/error.go b/pkg/venafi/cloud/error.go index b72d2326..9883ae22 100644 --- a/pkg/venafi/cloud/error.go +++ b/pkg/venafi/cloud/error.go @@ -19,7 +19,8 @@ package cloud import ( "encoding/json" "fmt" - "github.com/Venafi/vcert/v4/pkg/verror" + + "github.com/Venafi/vcert/v5/pkg/verror" ) type responseError struct { diff --git a/pkg/venafi/cloud/search.go b/pkg/venafi/cloud/search.go index 6cc33b63..17d71d44 100644 --- a/pkg/venafi/cloud/search.go +++ b/pkg/venafi/cloud/search.go @@ -19,12 +19,13 @@ package cloud import ( "encoding/json" "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" "log" "math" "net/http" "strings" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" ) type SearchRequest struct { diff --git a/pkg/venafi/cloud/search_test.go b/pkg/venafi/cloud/search_test.go index d230e7f6..ae1114f9 100644 --- a/pkg/venafi/cloud/search_test.go +++ b/pkg/venafi/cloud/search_test.go @@ -18,10 +18,11 @@ package cloud import ( "encoding/json" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/util" "testing" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/util" ) func TestSearchRequest(t *testing.T) { diff --git a/pkg/venafi/fake/connector.go b/pkg/venafi/fake/connector.go index 2f8dd7b7..d7c1ba1e 100644 --- a/pkg/venafi/fake/connector.go +++ b/pkg/venafi/fake/connector.go @@ -29,10 +29,9 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/policy" - - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" ) type Connector struct { diff --git a/pkg/venafi/fake/connector_test.go b/pkg/venafi/fake/connector_test.go index 9e2fcd72..954d4730 100644 --- a/pkg/venafi/fake/connector_test.go +++ b/pkg/venafi/fake/connector_test.go @@ -18,9 +18,10 @@ package fake import ( "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" "testing" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" ) func TestRetrieveCertificate(t *testing.T) { diff --git a/pkg/venafi/fake/fake.go b/pkg/venafi/fake/fake.go index cc58d513..272ab771 100644 --- a/pkg/venafi/fake/fake.go +++ b/pkg/venafi/fake/fake.go @@ -18,8 +18,9 @@ package fake import ( "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) // GenerateRequest creates a new certificate request, based on the zone/policy configuration and the user data diff --git a/pkg/venafi/fake/fake_test.go b/pkg/venafi/fake/fake_test.go index 271f4ea0..48151019 100644 --- a/pkg/venafi/fake/fake_test.go +++ b/pkg/venafi/fake/fake_test.go @@ -17,8 +17,9 @@ package fake import ( - "github.com/Venafi/vcert/v4/pkg/certificate" "testing" + + "github.com/Venafi/vcert/v5/pkg/certificate" ) func TestGenerateRequest(t *testing.T) { diff --git a/pkg/venafi/tpp/connector.go b/pkg/venafi/tpp/connector.go index 256e933d..17d868bf 100644 --- a/pkg/venafi/tpp/connector.go +++ b/pkg/venafi/tpp/connector.go @@ -30,12 +30,11 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/policy" - "github.com/Venafi/vcert/v4/pkg/util" - - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/verror" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" ) // Connector contains the base data needed to communicate with a TPP Server diff --git a/pkg/venafi/tpp/connector_test.go b/pkg/venafi/tpp/connector_test.go index 09805bb3..0dbdd28a 100644 --- a/pkg/venafi/tpp/connector_test.go +++ b/pkg/venafi/tpp/connector_test.go @@ -42,13 +42,12 @@ import ( "testing" "time" - "github.com/Venafi/vcert/v4/pkg/policy" - "github.com/Venafi/vcert/v4/pkg/util" - - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/verror" - "github.com/Venafi/vcert/v4/test" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/util" + "github.com/Venafi/vcert/v5/pkg/verror" + "github.com/Venafi/vcert/v5/test" ) var ctx *test.Context diff --git a/pkg/venafi/tpp/search.go b/pkg/venafi/tpp/search.go index a8f4b80c..bfadf62d 100644 --- a/pkg/venafi/tpp/search.go +++ b/pkg/venafi/tpp/search.go @@ -21,11 +21,12 @@ import ( "encoding/json" "encoding/pem" "fmt" - "github.com/Venafi/vcert/v4/pkg/certificate" "net/http" neturl "net/url" "strings" "time" + + "github.com/Venafi/vcert/v5/pkg/certificate" ) type SearchRequest []string diff --git a/pkg/venafi/tpp/search_test.go b/pkg/venafi/tpp/search_test.go index 303969bb..869fec69 100644 --- a/pkg/venafi/tpp/search_test.go +++ b/pkg/venafi/tpp/search_test.go @@ -26,9 +26,9 @@ import ( "testing" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/test" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/test" ) func TestParseCertificateSearchResponse(t *testing.T) { diff --git a/pkg/venafi/tpp/sshCertUtils.go b/pkg/venafi/tpp/sshCertUtils.go index f45f76de..71058c4b 100644 --- a/pkg/venafi/tpp/sshCertUtils.go +++ b/pkg/venafi/tpp/sshCertUtils.go @@ -25,9 +25,9 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/util" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/util" ) const ( diff --git a/pkg/venafi/tpp/tpp.go b/pkg/venafi/tpp/tpp.go index f701ff83..4efdc6a0 100644 --- a/pkg/venafi/tpp/tpp.go +++ b/pkg/venafi/tpp/tpp.go @@ -31,9 +31,9 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" - "github.com/Venafi/vcert/v4/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" + "github.com/Venafi/vcert/v5/pkg/policy" ) const defaultKeySize = 2048 diff --git a/pkg/venafi/tpp/tpp_test.go b/pkg/venafi/tpp/tpp_test.go index f9bae721..310709a5 100644 --- a/pkg/venafi/tpp/tpp_test.go +++ b/pkg/venafi/tpp/tpp_test.go @@ -18,11 +18,12 @@ package tpp import ( "crypto/x509" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/endpoint" "net/http" "strings" "testing" + + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/endpoint" ) const ( diff --git a/test/fixtures.go b/test/fixtures.go index 8dc8ca98..463f770d 100644 --- a/test/fixtures.go +++ b/test/fixtures.go @@ -23,8 +23,8 @@ import ( "strings" "time" - "github.com/Venafi/vcert/v4/pkg/certificate" - "github.com/Venafi/vcert/v4/pkg/policy" + "github.com/Venafi/vcert/v5/pkg/certificate" + "github.com/Venafi/vcert/v5/pkg/policy" ) func randRunes(n int) string {