当我通过 IP 访问仪表板并能够在使用 localhost 查看时出现此问题。
如果您已经发布了示例的数据,请关闭服务器并按照以下步骤操作
step1:为您的IP地址(10.100.0.xx)生成自签名证书
keytool -genkey -alias das -keyalg RSA -keystore das.jks -keysize 2048
What is your first and last name?
[Unknown]: 10.100.0.xx
step2:备份当前的/repository/resources/security/目录。
第三步:将您的证书导入 wso2carbon.jks。keytool -importkeystore -srckeystore das.jks -destkeystore wso2carbon.jks -srcstoretype jks -deststoretype jks -srcstorepass wso2carbon -deststorepass wso2carbon
step4:由于我们不能有两个不同的私钥,让我们删除前一个。keytool -delete -alias wso2carbon -keystore wso2carbon.jks -storepass wso2carbon
step5:导出公钥:keytool -export -keystore das.jks -alias das -file test.cer
step6:将公共证书导入client-truststore.jks keytool -import -alias das -file test.cer -keystore client-truststore.jks
step7:更新存储库/conf/carbon.xml
<KeyStore>
<!-- Keystore file location-->
<Location>${carbon.home}/repository/resources/security/wso2carbon.jks</Location>
<!-- Keystore type (JKS/PKCS12 etc.)-->
<Type>JKS</Type>
<!-- Keystore password-->
<Password>wso2carbon</Password>
<!-- Private Key alias-->
<KeyAlias>das</KeyAlias>
<!-- Private Key password-->
<KeyPassword>wso2carbon</KeyPassword>
</KeyStore>
step8:更新“identityAlias”:“das”,在路径 wso2das-3.0.1/repository/deployment/server/jaggeryapps/portal/configs/designer.json 内的 Designer.json
更多细节可以在http://udarakr.blogspot.com/2014/04/you-may-get-following-error-and-your.html 找到