![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
Yufeng Li
New Member
Members
Forum Posts: 2
Member Since:
06/22/2021
06/22/2021
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
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](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/admindefault.png)
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
05/30/2017
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
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. |
Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 30
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1396
Posts: 4717