Grab calling principal in local environment

Thanks team. So read through a few repo’s and have it working by cloning II canister locally and using that.

  1. Is it actually possible to do this with the deployed II canister or must I use a local version of the II canister when developing locally?
  2. Looks like it is fetching the root key in the createActor method generated by Motoko. I wonder if I need to do it manually? It appears to be successfully returning a giant blob as is
  3. The specific error is:
Failed to authenticate request xxxxxxxsomewhatlonghashxxxxx due to: Invalid delegation: Invalid canister signature: IcCanisterSignature signature could not be verified: public key xxxxxxxxxxreallylonghashxxxxxxx, error: certificate verification failed: failed to verify threshold signature: certificate_tree_hash=CryptoHash... 

Thanks for the help!