Skip to content

account:setup:ci fails when certificateid starts with hyphen #881

@dantal4

Description

@dantal4

Select the SuiteCloud tool where you encountered the issue

SuiteCloud CLI

Version of the SuiteCloud Tool

2.0.0

Operating system

macOS Sonoma 14.6.1

Node Version / VSCode Version

v18.9.0

JAVA Version

openjdk 17.0.13+0

Bug description

Trying to authenticate using the account:setup:ci command, and my certificateid starts with hyphen, but the command fails.

Steps To Reproduce

> suitecloud account:setup:ci --account 1234 --authid 1234 --certificateid -QjavVtnzeAPA_QdffgnTh9yPy6LbSGOYqNeJqtbKgU --privatekeypath private.pem
Value is expected here instead of "-QjavVtnzeAPA_QdffgnTh9yPy6LbSGOYqNeJqtbKgU".

The cerficateid was generated by NetSuite and appears like that in the OAuth 2.0 Client Credentials Setup:

Image

Actual Output

No response

Expected Output

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions