@nick @datatitian @humanetech @activitypub have you tried using https://webfinger.net/ it can help to see if everything is well formed
also feel free to look at how wordpress is doing it https://github.com/pfefferle/wordpress-activitypub/blob/master/includes/rest/class-webfinger.php#L68