App Store Connect Sign Token Issue ?

I have a JWT Header.json and a JWT Payload.json and App Store Connect is asking for a JWT Signed Token with a curl command to allow communication with the server. How do I sign the token and can I enter the command line in Xcode or only from the Terminal App ?

Kindly

App Store Connect Sign Token Issue ?
 
 
Q