Run Following commands in Powershell
PS C:\Users\Administrator> $cert = New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname *.domain.com
PS C:\Users\Administrator> $pwd = ConvertTo-SecureString -String 'password' -Force -AsPlainText
PS C:\Users\Administrator> $path = 'cert:\localMachine\my\' + $cert.thumbprint
PS C:\Users\Administrator> Export-PfxCertificate -cert $path -FilePath d:\powershellcert.pfx -Password $pwdDirectory: D:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2/22/2021 8:16 PM 2661 powershellcert.pfx Install the PFX file generated on Server and client machines Please find steps below to install the attached self signed certificate. I have already installed it on IIS. and application is accessible without error on https if certificate is installed. 1. Select Local Machine: 2. Press next 3. Enter password: password1234 and press next 4. Select second option to select store : Trusted root Certification Authorities 5. Press next 6. Press finish





Comments
Post a Comment