If you're on windows and using apache, maybe via WAMP or the Drupal stack installer, you can additionally download the git for windows package, which includes many useful linux command line tools, one of which is openssl.

The following command creates the self signed certificate and key needed for apache and works fine in windows:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privatekey.key -out certificate.crt
Answer from alexkb on Stack Overflow
🌐
Medium
medium.com › the-new-control-plane › generating-self-signed-certificates-on-windows-7812a600c2d8
Generating self-signed certificates on Windows | by Rory Braybrook | The new control plane | Medium
1 month ago - ... From the top-level in IIS Manager, select “Server Certificates”. ... Then click the “Create” on the right. This will create a self-signed certificate valid for a year with a private key.
🌐
DigiCert
knowledge.digicert.com › home › tutorials › creating a csr and install your ssl certificate on your windows server 2016
Creating a CSR and install your SSL certificate on your Windows server 2016
If you are looking for a simpler way to create CSRs and install and manage your SSL Certificates, we recommend using the DigiCert® Certificate Utility for Windows. You can use the DigiCert Utility to generate your CSR and install your SSL certificate.
🌐
Oshyn
oshyn.com › blog › windows-self-signed-certificates
How to Create Self-Signed SSL Certificates in Windows 11 - Oshyn
August 5, 2024 - With the right mouse button, drag and drop the certificate to the location opened in the previous step ... Open IIS, navigate to your site, and add an HTTPS binding. Make sure you enter the hostname, check the "Require Server Name Indication" ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › system-center › scom › obtain-certificate-windows-server-and-operations-manager
Obtain a certificate for use with Windows Servers and System Center Operations Manager | Microsoft Learn
For more information, see certificate templates. Sign in to a domain joined server with AD CS in your environment (your CA). On the Windows desktop, select Start > Windows Administrative Tools > Certification Authority.
🌐
Teramind
kb.teramind.co › en › articles › 8791235-how-to-generate-your-own-self-signed-ssl-certificates-for-use-with-an-on-premise-deployments
How to generate your own / self-signed SSL certificates for use with an On-Premise deployments | Teramind Knowledge Base
In this article we will show you how to generate your own authority certificates via OpenSSL for use with your Teramind On-Premise deployment. If you are using a network with an Active Directory domains then use Windows Certificate Center instead.
🌐
Texas State University
itac.txst.edu › support › ssl-certificate › csr-windows.html
How to Generate a CSR for SSL Certificates on Windows : IT Assistance Center : Texas State University
If you are requesting a certificate for an application or server that runs Internet Information Services (IIS) on a Windows server in the Texas State data center, you may request that ITAC set up the certificate for you. In this case, please include this request in the CSR field of the Secure Sockets Layer (SSL) Certificate Request. NOTE: ITAC cannot set up the certificate if it is application-based or uses Tomcat or Apache certifications. These instructions will generate a certificate automatically on a TXST-hosted Microsoft Windows Server running IIS (Internet Information Services) without having to use a request form.
🌐
GitHub
gist.github.com › klcantrell › 518d13d59c4074dbca6310c9b7e6c520
How to create and trust a SSL certificate on Windows · GitHub
How to create and trust a SSL certificate on Windows · Raw · self-signed-SSL-cert.md · Generate a private root key · openssl genrsa -des3 -out myCA.key 2048 · Generate a root certificate · openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1825 -out myCA.pem ·
Find elsewhere
🌐
Veeble
veeble.com › home › installation › generate self-signed certificate with openssl: windows/linux
Generate Self-Signed Certificate with OpenSSL: Windows/Linux - Veeble Hosting
February 20, 2025 - Learn to generate self-signed SSL certificates with OpenSSL on Windows/Linux. Covers installation, CSR creation, and more.
🌐
Utho
utho.com › docs › windows › how-to-create-a-self-signed-certificate-in-windows-server
How to Create a Self-Signed Certificate in Windows Server – utho Docs
March 7, 2024 - On modern Windows versions (Windows Server 2022/2019/2016/2012R2) you can create a self-signed certificate using the built-in PowerShell cmdlet [New-SelfSignedCertificate](https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps) without using ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 851932 › how-can-i-make-a-self-signed-certificate
How can I make a self-signed certificate? - Microsoft Q&A
https://www.kapilarya.com/generate-self-signed-ssl-certificate-in-windows-10-server · Let us know if this helps! Note: Included link in this reply refers to blog post by a trusted Microsoft MVP. 1 comment Show comments for this answer Report a concern · ICRabbit • ·
🌐
The Windows Club
thewindowsclub.com › the windows club › security › how to create self-signed ssl certificates in windows 11/10
How to create Self-signed SSL Certificates in Windows 11/10
June 30, 2024 - Read: Difference between TLS and SSL encryption methods. You can pretty easily generate a self-signed certificate using the PowerShell command-line utility. Use the New-SelfSignedCertificate cmdlet to create your certificates and then apply it using the Certificate Manager, check out the guide above to do the same. Also Read: Import EFS File Encryption Certificate and Key (PFX file) in Windows...
🌐
SSLInsights
sslinsights.com › self-signed › how to create self-signed certificate in windows 10
How to Create Self-Signed Certificate in Windows 10
September 30, 2024 - In Windows 10, self-signed certificates can be created using the Certificates snap-in console or the PowerShell Certificates module. Both methods generate a self-signed cert with a .cer file extension.
🌐
Delicious Brains
deliciousbrains.com › blog › create your own ssl certificate authority for local https development
How to Create Your Own SSL Certificate Authority for Local HTTPS Development
March 16, 2022 - If you prefer to use the locally signed certificate we’ve just set up, you can do this by enabling the “Expert” view, clicking on the SSL tab, and choosing your “Certificate” and “Certificate key” (private key) files. If you’re running a Linux or Windows environment which uses ...
🌐
SSLInsights
sslinsights.com › home › wiki › how to create self-signed ssl certificates in windows 11
How to Create Self-Signed SSL Certificates in Windows 11
October 29, 2024 - This guide will provide you with a comprehensive walkthrough on how to create self-signed SSL certificates in Windows 11 using the inbuilt Certificates Manager and expert PowerShell methods. We will cover how to properly generate, export, and install the self-signed certificates to enable HTTPS encryption on your internal websites using the capabilities within Windows 11 itself.
Address   1207 Delaware Ave #2838, 19806, Wilmington
(5.0)
🌐
Pleasant Solutions
pleasantpasswords.com › info › pleasant-password-server › b-server-configuration › 2-certificates › setting-up-a-self-signed-certificate
Setting up a Self-Signed Certificate - Pleasant Solutions
The following PowerShell commands and instructions will create a Root Certificate and a Self-Signed Certificate, valid for 10 years, and 350 days respectively and will place them in the Certificate Store on the local machine. Run the Command Prompt by typing "cmd" in the Windows search bar and right click and choose "Run as administrator."
🌐
iNTERFACEWARE
help.interfaceware.com › v6 › how-to-create-self-certified-ssl-certificate-and-publicprivate-key-files
How to create self-certified SSL certificate and public/private key files - iNTERFACEWARE Help Center
The CA would then sign the certificate and give it back to you upon payment, thus providing you with authentication according to their outlined policies. These instructions use screenshots from Windows 7, but the process is the same in other Windows versions. ... The standard install of puttygen.exe is in C:\Program Files\PuTTY — but it is a standalone executable and can be run from anywhere. Click the Generate button, and move the mouse around to generate randomness:
🌐
Lianja
lianja.com › doc › index.php › Creating_a_Self-Signed_Certificate
Creating a Self-Signed Certificate (Windows IIS) - Lianjapedia
To access the https web site from Edge and/or Firefox (and Chrome), install the certificate: In Windows Explorer, locate the file created by the Export Wizard, right-click on the file and select Install Certificate: