activitypub: switch to using x509 representation for public keys instead of pkcs#1
this is needed for misskey and some other implementations which do not understand pkcs#1
this is needed for misskey and some other implementations which do not understand pkcs#1