From 4b7fa2524d25b609a4f6401ee62d772f73fbc3b3 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Tue, 31 Jan 2023 12:10:59 -0800 Subject: [PATCH] Closes #1248 --- authority/config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authority/config/config.go b/authority/config/config.go index 556f5407..fb4d52f9 100644 --- a/authority/config/config.go +++ b/authority/config/config.go @@ -213,6 +213,9 @@ func (c *AuthConfig) Validate(audiences provisioner.Audiences) error { func LoadConfiguration(filename string) (*Config, error) { f, err := os.Open(filename) if err != nil { + fmt.Println("step-ca can't find or open the configuration file for your CA.") + fmt.Println("You may need to create a CA first by running `step ca init`.") + fmt.Println("Documentation: https://u.step.sm/docs/ca\n") return nil, errors.Wrapf(err, "error opening %s", filename) } defer f.Close()