gtlscertificate: Fix bug in PEM private key parser
Make sure to not go outside of PEM data buffer when looking for private key.
Also adding test case that triggers this bug.
Make sure to not go outside of PEM data buffer when looking for private key.
Also adding test case that triggers this bug.