github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_tools_encrypt-with-rsa.md (about)

     1  ## cozy-stack tools encrypt-with-rsa
     2  
     3  encrypt a payload in RSA
     4  
     5  ### Synopsis
     6  
     7  
     8  This command is used by system tests to encrypt bitwarden organization keys. It
     9  takes the public or private key of the user and the payload (= the organization
    10  key) as inputs (both encoded in base64), and print on stdout the encrypted data
    11  (encoded as base64 too).
    12  
    13  
    14  ```
    15  cozy-stack tools encrypt-with-rsa <key> <payload [flags]
    16  ```
    17  
    18  ### Options
    19  
    20  ```
    21    -h, --help   help for encrypt-with-rsa
    22  ```
    23  
    24  ### Options inherited from parent commands
    25  
    26  ```
    27        --admin-host string   administration server host (default "localhost")
    28        --admin-port int      administration server port (default 6060)
    29    -c, --config string       configuration file (default "$HOME/.cozy.yaml")
    30        --host string         server host (default "localhost")
    31    -p, --port int            server port (default 8080)
    32  ```
    33  
    34  ### SEE ALSO
    35  
    36  * [cozy-stack tools](cozy-stack_tools.md)	 - Regroup some tools for debugging and tests
    37