Cannot set property 'privateKey' of undefined
I use the commend box folders:get 0 -v
I got this error, but the private.pem exists in the path.
Can you help me with the issue?
-
Official comment
I think I found out the issue, it's a bug with our CLI. I have reported the issue and a fix.
https://github.com/box/boxcli/issues/207
https://github.com/box/boxcli/pull/206
Meanwhile, the way forward is to copy your PEM into the config.json file, removing any new lines. We hope to have a new release out asap.
Comment actions -
Thanks.
I have set the permission with chmod -R 777 . There is still this mistake.
Set the cli comment is box configure:environments:add ./455328__config.json --private-key-path /Users/liuhl/Desktop/test/backuptest/private.pemprivate.pem was created by the bellow comments.
openssl genrsa -des3 -out private.pem 2048
openssl rsa -in private.pem -outform PEM -pubout -out public.pem455328__config.json like below.
-
So we discovered this was a bug. I have submitted a patch and am now waiting for them to merge this patch and release a new version of the CLI.
-
Thanks.
I have fix the issue on my local with the code of https://github.com/box/boxcli/pull/206/files
Please sign in to leave a comment.
Comments
10 comments