Skip to content

Instantly share code, notes, and snippets.

@levi-turner
Created November 19, 2019 16:59
Show Gist options
  • Save levi-turner/ed56d3b602e7f7ec95a4196f26faf620 to your computer and use it in GitHub Desktop.
Save levi-turner/ed56d3b602e7f7ec95a4196f26faf620 to your computer and use it in GitHub Desktop.
# Creates a valid certificate for data encryption which expires 1 day from current time
New-SelfSignedCertificate -Subject "QlikSenseDataEncrytion" `
-KeyAlgorithm RSA `
-KeyLength 4096 `
-Provider "Microsoft Software Key Storage Provider" `
-KeyExportPolicy ExportableEncrypted `
-CertStoreLocation "cert:\CurrentUser\My" `
-NotAfter (Get-Date).AddDays(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment