Certificate Issue: "Usage of certificate is not allowed"|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Certificate Issue: "Usage of certificate is not allowed"
Avatar
Yufeng Li
New Member
Members
Forum Posts: 2
Member Since:
06/22/2021
sp_UserOfflineSmall Offline
1
06/22/2021 - 06:58
sp_Permalink sp_Print

Hi Experts,

I am currently trying to connect (from OPC client) to a sample server using certificate. I got an exception on the server while calling CertificateValidator.Validate(certificate), "Usage of certificate is not allowed".

Any hint on what might cause the problem?

Thanks!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
06/22/2021 - 10:45
sp_Permalink sp_Print

See https://reference.opcfoundatio.....rt6/6.2.2/

Check the keyUsage and extendedKeyUsage.

keyUsage    keyUsage Specifies how the Certificate key may be used.
Shall include digitalSignature, nonRepudiation, keyEncipherment and dataEncipherment.
Other key uses are allowed.
extendedKeyUsage    keyUsage Specifies additional key uses for the Certificate.
Shall specify ‘serverAuth and/or clientAuth.
Other key uses are allowed.
Avatar
Yufeng Li
New Member
Members
Forum Posts: 2
Member Since:
06/22/2021
sp_UserOfflineSmall Offline
3
06/22/2021 - 18:06
sp_Permalink sp_Print

Thank you so much for the information!

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 31
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855