Score:0

certificate cannot be used as an SSL server certificate

us flag

I created a certificate using powershell command New-SelfSignedCertificate

and I was able to see the certificate in MMC\Certificate Personal store. I then moved it to the Trusted store to get rid of the warning message in the certificate. I exported the certificate so that I may import it in IIS. (the exported file has the PFX extension)

after providing the pass-phrase/password, i got the error:

"certificate cannot be used as an SSL server certificate"

What am I doing wrong?

cn flag
The usage needs to be set to allow "Server" usage as well as "client" usage. I can't remember the powershell off the top of my head, but a quick google should do it.
cn flag
According to https://www.cloudsavvyit.com/3274/how-to-create-a-self-signed-certificate-with-powershell/, when you generate it it should show 'Server Authentication'
Lex Li avatar
vn flag
The actual PowerShell command you used is the key here. You have to generate a all -purpose certificate (without key usage restrictions) or a server certificate ("Server Authentication" purpose), or IIS Manager will reject it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.