From 8515d43dadb4a32a4a1c56b15bf16ae44931fe71 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 12 Jun 2018 16:57:36 -0400 Subject: [PATCH] A shell script to illustrate generating ECDSA key For now put down the openssl commands required to get the key and certificate available. --- confluent_server/bin/createcert.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 confluent_server/bin/createcert.sh diff --git a/confluent_server/bin/createcert.sh b/confluent_server/bin/createcert.sh new file mode 100644 index 00000000..e349d5dc --- /dev/null +++ b/confluent_server/bin/createcert.sh @@ -0,0 +1,4 @@ +#!/bin/bash +umask 0077 +openssl ecparam -name secp384r1 -genkey -out /etc/confluent/privkey.pem +openssl req -new -x509 -key /etc/confluent/privkey.pem -days 760 -out /etc/confluent/srvcert.pem -subj /CN=$(hostname)