small pixel drawing of a pufferfish dotfiles

Add chef-keygen
Jes Olson jolson@digitalocean.com
Tue, 08 Feb 2022 15:46:08 -0600
commit

648e0efedcf44a4c93c86ce3489595fcbbba10df

parent

0601d51819bc28a7ddcea48af6a352070a5ae397

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
A bin/chef-keygen

@@ -0,0 +1,7 @@

+#!/bin/sh + +key=$(openssl genrsa 2048 2>/dev/null) +pubkey=$(printf "%s" "$key" | openssl rsa -pubout) +pubkey_newline=$(printf "%s\n" "$pubkey" | tr '\n' '}' | sed 's/}/\\n/g') + +printf "%s\n%s\n%s\n" "$key" "$pubkey" "$pubkey_newline"