DOCS-1697: change keyfile generation