make sure key size is specified
generate identity private key on first page load