Letters of marque and reprisal now. This one is sailing further and further back into dark ages.
en.wikipedia.org/wiki/Letter_of_marque
In practice, the differences between privateers and pirates were sometimes slight, even merely a matter of interpretation
