bugfix on cert format convresion from PEM (from string) to der (binary).
Issue was that browser returned an PEM not DER formatted cert.
added test that verifies binary to hex parser on binary cert.