rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
17 stars 14 forks source link

Getting certificate error while trying to make connection #400

Open navjyot058 opened 4 days ago

navjyot058 commented 4 days ago

Frodo CLI version

Provide output of frodo -v

vboxuser@Forgerock:~$ frodo -v You are running the binary release. Installed versions: cli: v2.0.0-64 lib: v2.0.0-88 node: v20.11.1

Describe the issue

A clear and concise description of what the issue is.

I have installed frodo in my forgeops deployment in my ubuntu machine. However, when i am trying make connection, i get the below cert error. can anyone help?

vboxuser@Forgerock:~$ frodo conn add https://forgeops.example.com/am john.doe@company.com '' Error getting tokens self-signed certificate

vscheuber commented 4 days ago

@navjyot058 please try to use the -k, --insecure switch: Allow insecure connections when using SSL/TLS. Has no effect when using a network proxy for https (HTTPS_PROXY=http://:), in that case the proxy must provide this capability. (default: Don't allow insecure connections)

To see all the command options for a command, use -h: frodo conn save -h

Please let me know if that works for you.

navjyot058 commented 3 days ago

@vscheuber , Thanks for looking into this. I tried passing the argument, but it is still complaining.

vboxuser@Forgerock:~/forgeops$ frodo conn add https://forgeops.example.com/am/ amadmin ' ' --insecure Error getting tokens self-signed certificate

navjyot058 commented 3 days ago

I tried different options --

vboxuser@Forgerock:~/forgeops$ frodo conn add -k https://forgeops.example.com/am/ amadmin 'zIiolyo9gdjpnssPQwAedeNh' Error getting tokens self-signed certificate vboxuser@Forgerock:~/forgeops$ frodo conn save -k https://forgeops.example.com/am/ amadmin 'zIiolyo9gdjpnssPQwAedeNh' Error getting tokens self-signed certificate vboxuser@Forgerock:~/forgeops$ frodo conn save --insecure https://forgeops.example.com/am/ amadmin 'zIiolyo9gdjpnssPQwAedeNh' Error getting tokens self-signed certificate