0
1.i生成一个新的keystore use keytool(信息是[CN = 192.168.0.184,OU = livechain,O = livechain,L = dalian,ST = liaoning,C = cn]) 2.身份服务器ip是192.168.0.184,我改变carbon.xml如下:如何登录wso2身份服务器从其他机器使用openid?
<HostName>192.168.0.184</HostName>
<KeyStore>
<!-- Keystore file location-->
<Location>${carbon.home}/repository/resources/security/mykeystore.jks</Location>
<!-- Keystore type (JKS/PKCS12 etc.)-->
<Type>JKS</Type>
<!-- Keystore password-->
<Password>mypkpassword</Password>
<!-- Private Key alias-->
<KeyAlias>mycert</KeyAlias>
<!-- Private Key password-->
<KeyPassword>mypkpassword</KeyPassword>
</KeyStore>
和identity.xml如下:
<OpenIDServerUrl>https://192.168.0.184:9443/openidserver</OpenIDServerUrl>
<OpenIDUserPattern>https://192.168.0.184:9443/openid/</OpenIDUserPattern>
3.And当我要登入另一个身份服务器该机器的IP为192.168.0.180,它会发生如下错误:
0x704:I/O transport error:hostname in certificate didn't match: <WIN-L3NH0DVFLOG> != <192.168.0.184>
但如果我使用用户名和密码的常见登录,它会成功。
4.I永远不要改变主机。
那么,我该如何解决它?
对不起,我忘了在我的问题中修改IP,但在我的项目中,我使用了192.168.0.184而不是wso2.com,它也失败了...... – AriesDevil