Check validity of encryption certificate and use x509_certificate function throughout
Better check for file type
Better check for target id
Better test for encryption private key validity checking
Return nil if certificate node cannot be found from document
Environment is set correctly
Even better check for environment
Better check for customer id
Check if a valid response is got from danske get_bank_certificate
Check that encryption private key is present before trying to convert it into a key
Better check for file type
Check that node is present before trying to decode its content
Response code validation for response
Response code validation for Danske certificate requests
Dont consider response code 24 invalid
Better check for content
Better error message for not ok response code
Better checking for pin
Check that response can be decrypted with the given private key
Don't try to decrypt embedded key unless encrypted content is actually present