Supported Security Policies
A SecurityPolicy is a named bundle of algorithms for asymmetric signing,
asymmetric encryption, symmetric encryption, key derivation, and message
signing – defined in Part 7 of the OPC UA standard. A server advertises its
supported policies through its Endpoints (returned by GetEndpoints).
The client picks one when opening a SecureChannel.
The table below lists every standard profile implemented in open62541.
Adding a policy to a server is the same call regardless of backend –
UA_ServerConfig_addSecurityPolicy*() (see ECC Specifics for the
full call list).
Policy |
Type |
Notes |
|---|---|---|
|
Universal |
No signing, no encryption. Required for unencrypted discovery. |
|
RSA |
Legacy. RSA-1024 + AES-128. Deprecated, do not use for new systems. |
|
RSA |
RSA-2048 + AES-256. Replaced by |
|
RSA |
RSA-2048 + SHA-256 + AES-256. The current RSA baseline. |
|
RSA |
RSA-OAEP + AES-128 + SHA-256. Modern RSA profile. |
|
RSA |
RSA-PSS + AES-256 + SHA-256. Strongest RSA profile. |
|
ECC |
NIST P-256 (prime256v1). See ECC Specifics. |
|
ECC |
NIST P-384 (secp384r1). See ECC Specifics. |
|
ECC |
Brainpool P-256r1. See ECC Specifics. |
|
ECC |
Brainpool P-384r1. See ECC Specifics. |
|
ECC (EdDSA) |
Curve25519 / Ed25519. OpenSSL only. See ECC Specifics. |
|
ECC (EdDSA) |
Curve448 / Ed448. OpenSSL only. See ECC Specifics. |
|
PubSub |
Symmetric-only, AES-128-CTR. Used with PubSub message security. |
|
PubSub |
Symmetric-only, AES-256-CTR. Used with PubSub message security. |
Which of these you can actually enable depends on the crypto backend and the certificate you load. ECC-specifics – the
curve support matrix, certificate requirements, and the
UA_ServerConfig_addSecurityPolicy*Ecc*() helpers – are documented in
ECC Specifics.