Using n8n nodes to generate self signed certificates private and public keys

Hello !

I interested is it possible n8n flow node (for example in function node ) to generate self signed certificates private and public keys using input json values and using management REST API add these new certificates. (solution has management REST API that supports certificate adding ).

Example in openssl utlity to describe my aim generate self signed certificates private and public keys

openssl req -new -newkey rsa:2048 -x509 -sha256 -days 3000 -nodes -out .cert -keyout .key -batch -subj

Lauri-Alo Adamson

Hey @alolauri!

Are you self-hosting n8n? If yes, you can use the Execute Command node. Make sure that you have openssl installed on your server. You may have to rebuild the Docker image to include the openssl package.

Hello !

Thanks for answer.

Is there other possiblities for example using JavaScript Code Snipets with some thing like this Generate a self signed x509 certificate from node.js.

Lauri-Alo Adamosn

1 Like

As long as you are self hosting you can do something similar to the post below. Just use the name of the library you are interested in.