-
Notifications
You must be signed in to change notification settings - Fork 6
Initial configuration
Ilia Burakov edited this page Mar 3, 2020
·
2 revisions
- generate the certificate:
- run PowerShell as administrator
- replace
YOUR_SECURE_PASSWORDand 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.jsontoappsettings.jsonand changeDefaultConnection,AuthCertificateBase64,AuthCertificatePassword - copy
seedconfig.example.jsontoseedconfig.jsonand changeAdministratorEmail,AdministratorPassword