Removed unused import
cert_file, key_file and ca_certs should point to a file with the certificate not the certificate itself.
Fixed attribute filtering logic, take 2.
Fixed decryption/verification of signed and encrypted assertions.