在示例应用中进行设置时:Travelocity.properties
#Specify if SAM LAssertion element is encrypted
SAML.EnableAssertionEncryption=true
并勾选身份服务器配置选项:
Enable Assertion Encryption [ticked]
Certificate Alias: wso2carbon
我在服务器日志中收到以下错误:
日志时出错:2015-05-05 15:56:10,282加密XMLObject时出错
如果未启用加密功能,则带有Travelocity示例代码的SAML身份验证流程将开始工作。
欢迎提示如何解决此问题。
此致 克劳德
答案 0 :(得分:1)
您好像是第一次使用已安装的Java运行时。我正在使用ubuntu 14.同样的问题来到我身边。对我来说,它的工作方式如下。
1. Download the respective files according to your runtime from here.
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
2. Extract the folder you downloaded. There will be two .jar files.
3. For ubuntu you can run echo $JAVA_HOME to find the java home. Copy above jar files into {JAVA_HOME}/jre/lib/security. You may need sudo access depending on you JAVA_HOME location. If so run the following from the location you extracted the zip file.
cp local_policy.jar /{JAVA_HOME}/jre/lib/security
cp US_export_policy.jar /{JAVA_HOME}/jre/lib/security
There should be only one slash (/) at /{JAVA_HOME}.
4. Restart wso2 identity server again and retry the procedure to login to travelocity.com
希望这能解决您的问题。