"message": "Unable to sign token."

Troubleshooting Identity (Keystone)

If you see an error opening the signing key file, it's possible the person who ran keystone-manage pki_setup to generate certificates and keys isn't using the correct user. When you run keystone-manage pki_setup, keystone generates a set of certificates and keys in /etc/keystone/ssl* which is owned by root:root.

This is problematic when trying to then run the Keystone daemon under the 'keystone' user account (nologin) when trying to run PKI. Unless you manually chown the files keystone:keystone or run keystone-manage pki_setup with --keystone-user and --keystone-group you'll get an error like this:

2012-07-31 11:10:53 ERROR [keystone.common.cms] Error opening signing key file /etc/keystone/ssl/private/signing_key.pem
        140380567730016:error:0200100D:system library:fopen:Permission denied:bss_file.c:398:fopen('/etc/keystone/ssl/private/signing_key.pem','r')
        140380567730016:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
        unable to load signing key file
cat /var/log/keystone/keystone.log
2013-08-05 11:08:07  WARNING [keystone.common.wsgi] Unable to sign token.
2013-08-05 11:08:22    ERROR [keystone.common.cms] Signing error: Unable to load certificate - ensure you've configured PKI with 'keystone-manage pki_setup'
[root@localhost ~]# ps aux | grep keystone
keystone  2907  0.5  2.5 371544 45096 ?        S    14:51   0:00 /usr/bin/python /usr/bin/keystone-all --config-file /etc/keystone/keystone.conf 
 
keystone-manage pki_setup
chown keystone -R /etc/keystone/ssl/

keystone-manage pki_setup --keystone-user keystone --keystone-group keystone

转载于:https://my.oschina.net/feedao/blog/150208

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值