0
我想上傳私鑰到rundeck密鑰存儲,它與UI一起工作,我想從REST嘗試這一點,對此有何建議?上傳私鑰到rundeck密鑰存儲
我想上傳私鑰到rundeck密鑰存儲,它與UI一起工作,我想從REST嘗試這一點,對此有何建議?上傳私鑰到rundeck密鑰存儲
使用新的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