

16:44, EET

January 19, 2015

(We made a simple java desktop client (opcBasic) with Prosys SDK. It worked fine on windows thanks..)
I tried to build the same applikation on android system. It doesn’t work correctly, it throws exception (SecureIdentityException e1- see source code below):
exception: “Cannot create certificate for application”
(try-catch bloks are required only on Android)
try {
identity = ApplicationIdentity.loadOrCreateCertificate(appDescription, “Sample Organisation”,
/*Private Key Password */”opcua”,
/* Key File Path */privatePath,
/* CA certificate & private key */issuerCertificate,
/* Key Sizes for instance certificates to create */keySizes,
/* Enable renewing the certificate */true);
} catch (SecureIdentityException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
Parameter Values:
on Windows:
privatePath: PKI\CA\private
appDescription:ApplicationDescription: ApplicationDescription (id=2129670906)
DiscoveryUrls=null
DiscoveryProfileUri=null
GatewayServerUri=null
ProductUri=null
ApplicationUri=null
ApplicationType=null
ApplicationName={class org.opcfoundation.ua.builtintypes.LocalizedText}(en) opcBasic
issuerCertificate: null
keySizes: null
———————————————————————————————
on Android:
privatePath: PKI/CA/private
appDescription: ApplicationDescription: ApplicationDescription (id=1100650048)
DiscoveryUrls=null
DiscoveryProfileUri=null
GatewayServerUri=null
ProductUri=null
ApplicationUri=null
ApplicationType=null
ApplicationName={class org.opcfoundation.ua.builtintypes.LocalizedText}(en) opcBasic
issuerCertificate: null
keySizes: null
Thanks in advanced!
Have you ever come accross such a problem like this before?
8:44, EET

December 21, 2011

17:01, EET

January 19, 2015

Most Users Ever Online: 1919
Currently Online:
28 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 787
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1543
Posts: 6507
Newest Members:
Jameshax, Jeffreyfledy, lilliefalconer, Olpsom, shastaappleton, hildred39i, Adam, tammara49z, vktwaylon2, pilarstorkey83Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 0, Bjarne Boström: 1041, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1