tomcat忽略了krb5.conf文件

时间:2015-12-15 13:55:16

标签: java tomcat spnego

我正在尝试使用tomcat设置kerberos / spnego身份验证。我在tomcat目录下添加了一个krb5.conf文件,在SpnegoFilterConfig中读取了值并设置了java.security.krb5.conf,但似乎没有考虑到。无论文件是否存在,我都会得到相同的结果。

javax.servlet.ServletException: GSSException: Failure unspecified at GSS-API level (Mechanism level: Encryption type AES256 CTS mode with HMAC SHA1-96 is not supported/enabled)

如果我把jce安全文件放在lib / security中我得到

javax.servlet.ServletException: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)

然而,无论我是否拥有krb5.conf,都会发生这种情况。

1 个答案:

答案 0 :(得分:0)

您是否已使用Java的无限强度管辖权政策文件替换了您的安全策略文件?

http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

相关问题