Skip to content

Commit d729c47

Browse files
committed
Fix: correctly use chained certificates for AWS credential exchange
Signed-off-by: Noah Stride <noah.stride@goteleport.com>
1 parent 7839538 commit d729c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (s *X509SVIDSigner) Certificate() (*x509.Certificate, error) {
110110
// the trust anchor.
111111
// Implements the aws_signing_helper.Signer interface.
112112
func (s *X509SVIDSigner) CertificateChain() ([]*x509.Certificate, error) {
113-
if len(s.SVID.Certificates) < 1 {
113+
if len(s.SVID.Certificates) > 1 {
114114
return s.SVID.Certificates[1:], nil
115115
}
116116
return nil, nil

0 commit comments

Comments
 (0)