Added Certificate purposes to X509 status output.
Corrected certificate alias get text bug.
Refactored code to reduce number of variables and use common buffers for SHA fingerprints.