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
"pem" file read Fail....
February 28, 2016
3:36, EET
Avatar
cho21e
New Member
Members
Forum Posts: 2
Member Since:
October 15, 2015
sp_UserOfflineSmall Offline

NFO ,[2016/02/28 12:27:37.767] com.prosysopc.ua.ApplicationIdentity:loadOrCreateCertificate(279) – Reading application certificate from D:\PKI\CA\private\test.der
NFO ,[2016/02/28 12:27:37.827] com.prosysopc.ua.ApplicationIdentity:loadOrCreateCertificate(295) – Reading private key from keystore D:\PKI\CA\private\test.pem
RROR,[2016/02/28 12:27:38.523] com.nc.x.server.XUaServer:startServer(61) – com.prosysopc.ua.SecureIdentityException: Private key cannot be loaded from file PKI\CA\private\test.pem

when I start OPC UA Server, the error message printed..

Why…..I don’t know the reason…

“test.pem” file is in “D:\PKI\CA\private\test.pem”

February 29, 2016
12:28, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

The error tells that something is not right with the certificate and private key. Based on this information, it’s hard to say what specifically is wrong. You should check the der and pem files to see if there’s something wrong with them.

February 29, 2016
12:46, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Additionally, please check that you are using correct private key password when you load the private key.

If you need to get working certificate and private key generated, just delete previous ones and the SDK will generate new ones for you. This generation is done when you call ApplicationIdentity.loadOrCreateCertificate.

June 12, 2016
7:55, EEST
Avatar
pramanj
Member
Members
Forum Posts: 86
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

On deleting the certificate files under “private” folder and recompiling, it gives following error


com.prosysopc.ua.SecureIdentityException: Cannot create certificate for application ……..
at com.prosysopc.ua.ApplicationIdentity.createKeyPair(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateKeyPair(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateCertificate(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateCertificate(Unknown Source) ………

It was not giving such problems earlier! Is it due to java version , I changed from 1.7 to 1.8 (the latest)?

what to do?
regards
pramanj

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

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

Administrators: admin: 1