add_user error
imanuelcostigan opened this issue · 1 comments
imanuelcostigan commented
Following README, I ran the following
library(secure)
add_user('imanuelcostigan', local_key("github_rsa"))
The relevant info from the github_rsa public key is concatenated to the end of users.json
but I get the following error:
Error: No key matches id_rsa
I don't have id_rsa named keys in ~/.ssh
but rather only github_rsa. Tracing back I get the following:
6: stop("No key matches ", name, call. = FALSE)
5: local_key()
4: PKI::PKI.save.key(key, "DER")
3: my_key(vault)
2: recrypt(vault)
1: add_user("imanuelcostigan", local_key("github_rsa"))
Looks like the github_rsa base name isn't being passed up through the call stack.