|
|
@ -1,6 +1,7 @@
|
|
|
|
package ca
|
|
|
|
package ca
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"bytes"
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
"crypto/tls"
|
|
|
|
"crypto/tls"
|
|
|
|
"crypto/x509"
|
|
|
|
"crypto/x509"
|
|
|
@ -342,10 +343,10 @@ func (ca *CA) Run() error {
|
|
|
|
log.Printf("X.509 Root Fingerprint: %s", x509util.Fingerprint(crt))
|
|
|
|
log.Printf("X.509 Root Fingerprint: %s", x509util.Fingerprint(crt))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if authorityInfo.SSHCAHostPublicKey != nil {
|
|
|
|
if authorityInfo.SSHCAHostPublicKey != nil {
|
|
|
|
log.Printf("SSH Host CA Key: %s\n", authorityInfo.SSHCAHostPublicKey)
|
|
|
|
log.Printf("SSH Host CA Key: %s\n", bytes.TrimSpace(authorityInfo.SSHCAHostPublicKey))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if authorityInfo.SSHCAUserPublicKey != nil {
|
|
|
|
if authorityInfo.SSHCAUserPublicKey != nil {
|
|
|
|
log.Printf("SSH User CA Key: %s\n", authorityInfo.SSHCAUserPublicKey)
|
|
|
|
log.Printf("SSH User CA Key: %s\n", bytes.TrimSpace(authorityInfo.SSHCAUserPublicKey))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|