DEV Community

Caio Cesar
Caio Cesar

Posted on • Edited on

Generating SSH Certificate in Windows

Software Requirements

Download and install Open SSL

Download and install Putty Gen

Alt Text

Configuration

Find the OpenSSL installation folder such as:
C:\Program Files\OpenSSL-Win64\bin\

Create a folder named 'cert' inside bin folder.

Open the command prompt as administrator and navigate to the OpenSSL bin folder

cd C:\Program Files\OpenSSL-Win64\bin\
Enter fullscreen mode Exit fullscreen mode

Generate the private key and the CRT in the cert folder:

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout cert/privateKey-example.key -out cert/certificate-example.crt
Enter fullscreen mode Exit fullscreen mode

Generate the PFX certificate:

openssl pkcs12 -export -out cert/certificate-example.pfx -inkey cert/privateKey-example.key -in cert/certificate-example.crt
Enter fullscreen mode Exit fullscreen mode

At this poin 3 files should be generated in the cert folder:

Alt Text

Generate a PKCS#1 Private key

openssl pkcs12 -in cert/certificate-example.pfx -nocerts -out cert/privateKey-example.pem
Enter fullscreen mode Exit fullscreen mode

Decrypt the private key to generate the ppk

openssl rsa -in cert/privateKey-example.pem -out cert/teste-privateKey-example-decrypted_key.pem
Enter fullscreen mode Exit fullscreen mode

Execute the Putty Gen program and load the decrypted private key
Save the new private and public key as ppk.

Alt Text

At this point the public and private key could be used for SFTP authentication.

Alt Text

DevCycle image

OpenFeature Multi-Provider: Enabling New Feature Flagging Use-Cases

DevCycle is the first feature management platform with OpenFeature built in. We pair the reliability, scalability, and security of a managed service with freedom from vendor lock-in, helping developers ship faster with true OpenFeature-native feature flagging.

Watch Full Video 🎥

Top comments (0)

Heroku

Tired of jumping between terminals, dashboards, and code?

Check out this demo showcasing how tools like Cursor can connect to Heroku through the MCP, letting you trigger actions like deployments, scaling, or provisioning—all without leaving your editor.

Learn More

đź‘‹ Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay