Skip to content

keys -m create --key-stdin?? #619

Description

@jdx-john

Readme.md says I should consult the console app for examples how to do authentication, but the keys option is very light on any detail what I should be passing and in what order (I think public, private keys in that order).

I tried to use --key-stdin and now my console is stuck, whatever I type in it just keeps wanting more lines. Even standard ctrl-c/x keys won't terminate it.

No idea what I'm really supposed to be doing, how I even tell if it's worked. What is the correct usage?

Activity

  1. jdx-john commented on Jul 27, 2021

    @jdx-john
    ContributorAuthor

    (I got it to work without using --key-stdin but I'd still like to know)

  2. restlessarcher commented on Dec 25, 2021

    @restlessarcher

    CTRL+Z ends the input editor :)
    So, the order is as you thought? I'm looking for help setting up the keys file...

  3. restlessarcher commented on Dec 25, 2021

    @restlessarcher

    I couldn't get the console input working either -- CryptoUtility finds " API key has invalid characters " no matter if I use ^Z on the same line as the keys or the next line after an [Enter]...

  4. StarringLara commented on Jan 30, 2022

    @StarringLara

    Yes, there needs to be more documentation about this. Even the console help doesn't really explain how to do it. I tried using keys -m create --key-stdin, which took it to a prompt. I pasted in my public key, enter, the private key, enter, the passphrase, enter, Ctrl+Z, enter. The Ctrl+Z followed by enter at the end was the only way I could get the prompt to stop. After that it did generate some kind of file, but when I try to use it, an exception is thrown, saying the file should include at least a public key, private key, and optional passphrase.

  5. StarringLara commented on Jan 30, 2022

    @StarringLara

    I got it to work by launching exchange-sharp.exe in interactive mode and creating the file using --key-list instead of --key-stdin. The command (after landing in interactive mode) was keys -m create --key-list public-key,private-key,passphrase. It created a keys.bin file that I was able to load. This is better than having to resort to the LoadAPIKeysUnsecure method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions