2022-01-27 04:06:25 +00:00
|
|
|
//go:build !enterprise
|
|
|
|
|
|
|
|
package pki
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"errors"
|
2022-01-31 23:24:16 +00:00
|
|
|
"io"
|
|
|
|
|
2022-01-27 04:06:25 +00:00
|
|
|
"github.com/hashicorp/vault/sdk/helper/certutil"
|
|
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
|
|
)
|
|
|
|
|
|
|
|
var errEntOnly = errors.New("managed keys are supported within enterprise edition only")
|
|
|
|
|
2022-04-20 17:46:01 +00:00
|
|
|
func generateManagedKeyCABundle(_ context.Context, _ *backend, _ *inputBundle, _ *certutil.CreationBundle, _ io.Reader) (*certutil.ParsedCertBundle, error) {
|
|
|
|
return nil, errEntOnly
|
2022-01-27 04:06:25 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 17:46:01 +00:00
|
|
|
func generateManagedKeyCSRBundle(_ context.Context, _ *backend, _ *inputBundle, _ *certutil.CreationBundle, _ bool, _ io.Reader) (*certutil.ParsedCSRBundle, error) {
|
|
|
|
return nil, errEntOnly
|
2022-01-27 04:06:25 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 17:46:01 +00:00
|
|
|
func parseManagedKeyCABundle(_ context.Context, _ *backend, _ *logical.Request, _ *certutil.CertBundle) (*certutil.ParsedCertBundle, error) {
|
|
|
|
return nil, errEntOnly
|
2022-01-27 04:06:25 +00:00
|
|
|
}
|
2022-03-03 21:30:18 +00:00
|
|
|
|
2022-04-20 17:46:01 +00:00
|
|
|
func withManagedPKIKey(_ context.Context, _ *backend, _ managedKeyId, _ string, _ logical.ManagedSigningKeyConsumer) error {
|
2022-03-03 21:30:18 +00:00
|
|
|
return errEntOnly
|
|
|
|
}
|