add function to extract the raw spki.

It took me way too long to find the right call for this.