How to generate a self-signed SSL certificate in windows11 using power shell command & export | LSC

preview_player
Показать описание
Hi Everyone,

In this video, we will see how to generate a self-signed SSL certificate in windows 11 using the power shell command and export it.

if you do not have PowerShell installed, use this link to install it.

Complete instruction is available at below GIT repo.

Please post your questions in the comment section and I will be happy to answer your questions.

Happy coding!
Рекомендации по теме
Комментарии
Автор

2:58, I did your steps but "yes, export the private key" is disabled and I can read "Note: the associated private key cannot be found. Only the certificate can be exported". Any help?

sentnza
Автор

Hello, I am trying to export the certificate but I am getting an error

Export-PfxCertificate : Password and ProtectTo cannot both be absent
At line:1 char:86
+ ... "Certificate Number" | Export-PfxCertificate -FilePath C:\Temp\mypfx.pfx
+
+ CategoryInfo : InvalidArgument: (:) [Export-PfxCertificate], ArgumentException
+ FullyQualifiedErrorId : NullInput, Microsoft.CertificateServices.Commands.ExportPfxCertificate

Any way to solve this?

devanshincanada
visit shbcf.ru