infamousjoeg / cybr-cli

A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @CyberArk suite of products.
Apache License 2.0
71 stars 15 forks source link

cybr conjur logon --self-signed does not work when certificate bundle contains more than 2 certificates #96

Closed AndrewCopeland closed 3 years ago

AndrewCopeland commented 3 years ago

Describe the bug cybr conjur logon --self-signed does not work when certificate bundle contains more than 2 certificates

To Reproduce Configure conjur to contain 3 or more certificates in the certificate chain

Expected behavior Pull down the certificate chain regardless of the amount of certificates present.

Additional context Here is the hardcoded value of 2 certs allowed: https://github.com/infamousjoeg/cybr-cli/blob/d0951cd0d16707b7e126eae174fd46e444fdd516/pkg/cybr/conjur/conjurrc.go#L51