Topic RSS13:13, EEST
November 18, 2014
OfflineI am getting following exception when I try to connect with UserName token to SampleConsoleServer provided by Prosys:
at com.prosysopc.ua.client.UaClient.c(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.keba.opcua.KvsOpcUaClient.(KvsOpcUaClient.java:98)
at com.keba.opcua.KvsOpcUa.main(KvsOpcUa.java:48)
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_InternalError (code=0x80020000, description="2147614720, Cannot find any provider supporting RSA/NONE/PKCS1Padding")
at org.opcfoundation.ua.utils.EndpointUtil.createUserNameIdentityToken(Unknown Source)
… 4 more
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/PKCS1Padding
at javax.crypto.Cipher.getInstance(Cipher.java:524)
at org.opcfoundation.ua.utils.CryptoUtil.asymmEncrypt(Unknown Source)
… 5 more
The settings for the server are:
Username and password: “opcua”/”opcua”. Those credentials work when I use them in UaExpert Client.
Also, in my project, I am using java 1.7 and bouncy castle libraries provided with Prosys’ client stack.
15:17, EEST
April 3, 2012
OfflineHi,
Are you sure that the bouncy castle libs are in the classpath for your client also? And they are used as-is (i.e. the original jar files; not all merged in one jar, because they are signed and therefore only work as original)
If the classpath for both client/server is the same, then its weird because if it works with UaExpert it should also work with the client since the same security algorithm is used also on the server.
– Bjarne
1 Guest(s)

Log In
Register