Thanks for your posting. There's a "Generate Key in TestRail" button/link on the configuration page in TestRail:
(next to the Integration Key field)
This will jump to TestRail and goes through a wizard to generate a key (which you need to copy & paste back to JIRA).
I hope this helps!