将私钥上传到rundeck密钥存储

时间:2016-12-01 21:51:46

标签: rundeck

我正在尝试将私钥上传到rundeck密钥存储,它与UI一起工作,我想从REST尝试这个,有关于此的任何建议吗?

1 个答案:

答案 0 :(得分:1)

使用新的CLI工具。见https://rundeck.github.io/rundeck-cli/

用法如下

rd keys create help
Create a new key entry.

Usage: create options PATH
    [--file -f value] : File path for reading the upload contents.
    [--path -p value] : Storage path, default: keys/
    [--prompt -p] : (password type only) prompt on console for the password value, if -f is not specified.
    --type -t value : Type of key to store: publicKey,privateKey,password.

例如:

rd keys create --file id_rsa --path keys/myuser/id_rsa --type privateKey