Thanks Jade.
I thought that should solve the problem, but not in my case.
I did change PrivateKeyExportable to true in settings.json
First I tried just to force an update. Did not help.
Then I made a new certificate like this:
I ran wacs.exe in Power Shell
Then I made these choices:
M: Create new certificate (full options)
2: Manual input
To prove ownership:
2: {http-01} Serve verification files from memory (recommended)
What kind of private key should be used?
2: RSA key
Where to store:
3: Windows Certificate Store
3: No additional storage steps required
1: Create or update https bindigs in IIS
Choose site: Smartermail
3: Do not run any (extra) installation steps
Result:
Store with CertificateStore...
Installing certificate in the certificate store
Adding certificate mail.xxxxxxx.xxx to store My
Installing with IIS...
Updating existing https binding :443 <flags: 0>
Committing 1 https binding changes to IIS
So a new certificate is created. The site works fine.
But I can still not export Private Key.
Please tell me what I'm doing wrong.