From 4cae3bb37c80865cf0a6f9b3adc5c7ff41734e6d Mon Sep 17 00:00:00 2001 From: max furman Date: Tue, 5 Nov 2019 16:20:29 -0800 Subject: [PATCH] Add `ca` to ssh PKI names for clarity --- pki/pki.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pki/pki.go b/pki/pki.go index 56f3dbbd..1896b7b4 100644 --- a/pki/pki.go +++ b/pki/pki.go @@ -185,16 +185,16 @@ func New(public, private, config string) (*PKI, error) { if p.intermediateKey, err = getPath(private, "intermediate_ca_key"); err != nil { return nil, err } - if p.sshHostPubKey, err = getPath(public, "ssh_host_key.pub"); err != nil { + if p.sshHostPubKey, err = getPath(public, "ssh_host_ca_key.pub"); err != nil { return nil, err } - if p.sshUserPubKey, err = getPath(public, "ssh_user_key.pub"); err != nil { + if p.sshUserPubKey, err = getPath(public, "ssh_user_ca_key.pub"); err != nil { return nil, err } - if p.sshHostKey, err = getPath(private, "ssh_host_key"); err != nil { + if p.sshHostKey, err = getPath(private, "ssh_host_ca_key"); err != nil { return nil, err } - if p.sshUserKey, err = getPath(private, "ssh_user_key"); err != nil { + if p.sshUserKey, err = getPath(private, "ssh_user_ca_key"); err != nil { return nil, err } if len(config) > 0 {