IKEv2 digital signature with rsa-pss-sha2_256 fails
I'm enabling IKEv2 digital signatures with rsa-pss on a FortiGate VPN Gateway:
config vpn ipsec phase1-interface
edit "xyz"
...
set digital-signature-auth enable
set signature-hash-alg sha1 sha2-256 sha2-384
set rsa-signature-format pss
next
end
When the peer sends an client certificate and an IKEv2 AUTH payload with an RSA-PSS SHA1 signature then everything works well:
ike 0:dbmas:187: certificate validation succeeded
ike 0:dbmas:187: signature verification succeeded using rsassa-pss-with-empty-params, oid=1.2.840.113549.1.1.10
ike 0:dbmas:187: auth verify done
ike 0:dbmas:187: responder AUTH continuation
ike 0:dbmas:187: authentication succeeded
When the IKEv2 AUTH payload contains an RSA-PSS SHA2-256 signature with a default salt size of 32 bytes then the following error occurs:
ike 0:dbmas:190: certificate validation succeeded
ike 0:dbmas:190: signature verification failed
A client certificate with an RSA-PSS SHA2-256 signature seems to be accepted, though, but the IKEv2 AUTH signature verification still fails:
ike 0:dbmas:193: certificate validation succeeded
ike 0:dbmas:193: signature verification failed
The FortiGate VPN gateway runs FortiOS v7.0.1 and the VPN client runs strongSwan 5.9.7.
