[英]Error: NoCredentialProviders: no valid providers in chain. Deprecated. error with dehydrated tool
I am trying to update certs on my servers with dehydrated and dehydrated-route53-hook-script .我正在尝试使用dehydrated和dehydrated-route53-hook-script更新我服务器上的证书。
Here is the complete command and error:这是完整的命令和错误:
./xsys renewcerts
Running: cd certificates && ./dehydrated --cron
# INFO: Using main config file ..config/certificates/config
Processing mydomain.org with alternative names: dev-mydomain.org
+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Apr 21 11:47:17 2019 GMT (Less than 30 days). Renewing!
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting new certificate order from CA...
+ Received 2 authorizations URLs from the CA
+ Handling authorization for dev-mydomain.org
+ Handling authorization for mydomain.org
+ 2 pending challenge(s)
+ Deploying challenge tokens...
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Could not find zone for dev-mydomain.org
Running: cd certificates && ./dehydrated --cleanup
Looks like the aws credentials are failing, but from everything I can tell those are OK.看起来 aws 凭据失败了,但从我能说的一切来看,这些都没有问题。 I last ran this ~60 days ago and it ran fine then and (as far as I know) nothing has changed.我上次运行这个大约是 60 天前,当时运行良好,(据我所知)没有任何改变。
Any ideas on where to look for a fix is appreciated.任何有关在哪里寻找修复程序的想法表示赞赏。
I found that this command is failing:我发现这个命令失败了:
$cli53 list
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
So the root issue seems to be cli53.所以根本问题似乎是 cli53。 I have credentials in ~/.aws/credentials
per docs.我在每个文档的~/.aws/credentials
有凭据。
This ended up being an issue with cli53.这最终成为 cli53 的问题。 I had a symlink as follows...我有一个符号链接如下...
ls -la .aws/
total 0
drwxr-xr-x 3 myuser staff 96 Apr 5 15:33 .
drwxr-xr-x+ 143 myuser staff 4576 Apr 8 12:30 ..
lrwxr-xr-x 1 myuser staff 69 Apr 5 15:33 credentials -> /Users/myuser/ansible/myapp/_secrets/aws_credentials
...but I had recently changed this path to: ...但我最近将此路径更改为:
/Users/myuser/apps/myapp/_secrets/aws_credentials
so it was simply a failure of cli53 being able to find the appropriate credentials. /Users/myuser/apps/myapp/_secrets/aws_credentials
所以这只是 cli53 未能找到合适的凭证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.