Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pkg/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ type SshCertRequest struct {
Guid string
IncludePrivateKeyData bool
PrivateKeyPassphrase string
PrivateKeyFormat string
IncludeCertificateDetails bool

Timeout time.Duration
Expand Down Expand Up @@ -262,7 +261,6 @@ type TppSshCertRetrieveRequest struct {
DN string
IncludePrivateKeyData bool
PrivateKeyPassphrase string
PrivateKeyFormat string
IncludeCertificateDetails bool
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/venafi/tpp/sshCertUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ func convertToSshCertReq(req *certificate.SshCertRequest) certificate.TPPSshCert
tppSshCertReq.ForceCommand = req.ForceCommand
}

if req.PrivateKeyPassphrase != "" {
tppSshCertReq.PrivateKeyPassphrase = req.PrivateKeyPassphrase
}

tppSshCertReq.IncludePrivateKeyData = true
tppSshCertReq.IncludeCertificateDetails = true

Expand Down