Generate private key with passphrase

openssl

# _ciph: aes128, aes256
# _len: 2048, 4096
( _ciph="aes128" ; _fd="private.key" ; _len="2048" ; \
openssl genrsa -${_ciph} -out ${_fd} ${_len} )
click the source code to copy install openssl on any operating system with command-not-found.com