Cli: Catch ssl errors in pki request command

fixes #7426