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
How long is valid the Certificate for ApplicationIdentity?
May 8, 2024
10:35, EEST
Avatar
Oleksandr
Member
Members
Forum Posts: 32
Member Since:
February 14, 2020
sp_UserOfflineSmall Offline

Hello Prosys Team.
We use a prosysopc:ua-client-server-sdk:5.1.0-116.
We create a certificate for ApplicationIdentity:

identity = ApplicationIdentity.loadOrCreateCertificate(
appDesc,
“Name”,
“name”,
new File(certStore.getBaseDir(), “private”),
null,
null,
true
);

How long is it valid for?
How can I create a certificate that is valid for 100 years?

Thanks in advance.
Regards Oleksandr

May 8, 2024
11:04, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 323
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

By default, certificates created by calling ApplicationIdentity.loadOrCreateCertificate are valid for 3650 days, which is approximately 10 years.

You can call ApplicationIdentity.setDefaultCertificateDays to set the default to another value, e.g. 36500 for approximately 100 years. You must call this before creating new certificates with ApplicationIdentity.loadOrCreateCertificate. Calling ApplicationIdentity.setDefaultCertificateDays and then loading an existing certificate with ApplicationIdentity.loadOrCreateCertificate does not affect its validity period.

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: 695

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1470

Posts: 6268

Newest Members:

MinniePries, 42or, kaisa, sonbranson085, Pedromon, dalevine155279, Tailor, BetseyJep, Patagot, vimal

Moderators: Jouni Aro: 1012, 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: 323, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1