Skip to content

Initial configuration

Ilia Burakov edited this page Mar 3, 2020 · 2 revisions
  1. generate the certificate:
  • run PowerShell as administrator
  • replace YOUR_SECURE_PASSWORD and run:
$documents = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyDocuments)
$certPath = (Join-Path $documents 'cert.pfx')
$password = ConvertTo-SecureString -String 'YOUR_SECURE_PASSWORD' -Force -AsPlainText
$cert = New-SelfSignedCertificate -certstorelocation $documents -dnsname 'hikkaba.web.dev.local' -notafter (Get-Date).AddYears(300)
Export-PfxCertificate -cert $cert -FilePath $certPath -Password $password
[Convert]::ToBase64String([IO.File]::ReadAllBytes($certPath))
  • check the certificate:
certutil -dump $certPath
  1. copy appsettings.example.json to appsettings.json and change DefaultConnection, AuthCertificateBase64, AuthCertificatePassword
  2. copy seedconfig.example.json to seedconfig.json and change AdministratorEmail, AdministratorPassword
Clone this wiki locally