v2.0.0
What's Changed
- Make it possible to configure WSSE through entry steps similar to how you do this in SoapUI by @veewee in #5
$privKey = Key::fromFile('security_token.priv')->withPassphrase('xxx'); // Regular private key (not wrapped in X509)
$pubKey = Certificate::fromFile('security_token.pub'); // Public X509 cert
$signKey = Certificate::fromFile('sign-key.pem'); // X509 cert for signing. Could be the same as $pubKey.
$wsseMiddleware = new WsseMiddleware(
outgoing: [
new Entry\Timestamp(60),
new Entry\BinarySecurityToken($pubKey),
(new Entry\Signature(
$privKey,
new KeyIdentifier\BinarySecurityTokenIdentifier()
))
(new Entry\Encryption(
$signKey,
new KeyIdentifier\X509SubjectKeyIdentifier($signKey)
))
->withKeyEncryptionMethod(KeyEncryptionMethod::RSA_OAEP_MGF1P)
->withDataEncryptionMethod(DataEncryptionMethod::AES256_CBC)
],
incoming: [
new Entry\Decryption($privKey)
]
);
Full Changelog: v1.1.0...v2.0.0