Revert "Extract public key from cert if no object on card"

This reverts commit 3a60e8f85ee3d828f0ede03eec3d628abb1282be.
Extract public key from cert if no object on card