mirror of
https://github.com/FreeOpcUa/opcua-asyncio
synced 2025-10-29 17:07:18 +08:00
Set the correct client signature algorithm (#78)
* Set the correct client signature algorithm
This commit is contained in:
parent
5cd7d66cde
commit
4748b6bbd5
|
|
@ -394,7 +394,10 @@ class Client:
|
|||
challenge += self.security_policy.server_certificate
|
||||
if self._server_nonce is not None:
|
||||
challenge += self._server_nonce
|
||||
params.ClientSignature.Algorithm = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
|
||||
if self.security_policy.AsymmetricSignatureURI:
|
||||
params.ClientSignature.Algorithm = self.security_policy.AsymmetricSignatureURI
|
||||
else:
|
||||
params.ClientSignature.Algorithm = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
|
||||
params.ClientSignature.Signature = self.security_policy.asymmetric_cryptography.signature(challenge)
|
||||
params.LocaleIds.append("en")
|
||||
if not username and not certificate:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user