PEM File "CERTIFICATE" vs "PUBLIC KEY"

One is a public cert, the other is a key. As Federico stated in comments, this question addresses it pretty well.

That being said, what are you trying to do?