Only thing I wonder is that I think other functions return the key record not just the PEM hex data which is what's returned here? Maybe provide both options?