-
Notifications
You must be signed in to change notification settings - Fork 5
Initial configuration
Ilia Burakov edited this page Mar 3, 2020
·
2 revisions
- 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
- copy
appsettings.example.json
toappsettings.json
and changeDefaultConnection
,AuthCertificateBase64
,AuthCertificatePassword
- copy
seedconfig.example.json
toseedconfig.json
and changeAdministratorEmail
,AdministratorPassword