DEV Community

Berk
Berk

Posted on

Creating Fullchain Self Signed SSL With 3 Commands

 Overview

I wrote about how to create a fullchain ssl certificate manually in a previous post. Today, I will show you how you can create fullchain ssl cert with only 3 commands.

We will use a tool named crtforge which is free and open-source application that you can find on Github.

 Install crtforge

To install crtforge, you need Linux or macOS. You can also use the crtforge on Windows with wsl.

sudo curl -L -o /usr/bin/crtforge https://github.com/safderun/crtForge/releases/latest/download/crtforge-$(uname -s)-$(uname -m) && \
sudo chmod +x /usr/bin/crtforge
Enter fullscreen mode Exit fullscreen mode

These two command will install crtforge binary to your system.

 Create a fullchain cert.

You can directly run crtforge with a appname and domains that app needs.

crtforge websiteApp myapp.com app.myapp.com
Enter fullscreen mode Exit fullscreen mode

Congratulations 🎉, you will have your fullchain with 3 commands in total.

You can get the certs from the $HOME/.config/crtforge/default/websiteApp directory.

For detailed usage like custom root CA, custom intermediate CA and trusting the root CAs, you can check the readme of the repository.

Top comments (0)