Open SharkMachine opened 3 years ago
Looks great! Can we get this merged in? @robrichards
@robrichards I have to use a fork of this library because these changes are needed for web services to Danske Bank to work.
@SharkMachine Thinking about the logic a bit as it does change the current behavior slightly. Now you must pass in includeKeyInfo as true for it to include the name whereas before as long as the key name was not empty it would add it. Would prefer to keep the existing behavior while also adding this as to avoid any BC issues
Adds the possibility to include encryption certificate with with xenc:EncryptedData/dsig:KeyInfo/xenc:EncryptedKey/dsig:KeyInfo/dsig:X509Data/dsig:X509Certificate