Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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
Member
Members
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
Member
Members
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: 1919
Currently Online:
Guest(s) 61
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1