DSL: validate value of GPG key ID

Needs review.