Managed to get the public key, but in the format of an OpenSSL certificate. This now needs to be coverted programmatically.