Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Failed to initialize User Identity Token
April 7, 2015
13:13, EEST
Avatar
Darko
Member
Members
Forum Posts: 8
Member Since:
November 18, 2014
sp_UserOfflineSmall Offline

I am getting following exception when I try to connect with UserName token to SampleConsoleServer provided by Prosys:

com.prosysopc.ua.SessionActivationException: Failed to initialize User Identity Token: Bad_InternalError (code=0x80020000, description="2147614720, Cannot find any provider supporting RSA/NONE/PKCS1Padding") ServiceResult=Bad_InternalError (0x80020000) "An internal error occurred as a result of a programming or configuration error."
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:

opc.tcp://localhost:52520/OPCUA/SampleConsoleServer

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.

April 7, 2015
15:17, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 982
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

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

April 8, 2015
8:51, EEST
Avatar
Darko
Member
Members
Forum Posts: 8
Member Since:
November 18, 2014
sp_UserOfflineSmall Offline

Thank you for answering.

The problem was solved now via this solution:

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

ibrahim: 75

rocket science: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 707

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1