Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
mkdir MyRootCA
openssl genrsa -out MyRootCA.key 2048
openssl req -x509 -new -key MyRootCA.key -days 365 -out MyRootCA.crt
type MyRootCA.crt MyRootCA.key > MyRootCA.pem
cat MyRootCA.crt MyRootCA.key > MyRootCA.pem
HOSTNAME
SET HOSTNAME=PublicDnsOfServer SET ROOTCA=MyRootCA
HOSTNAME='PublicDnsOfServer' ROOTCA='MyRootCA' export HOSTNAME export ROOTCA
%HOSTNAME%
$HOSTNAME
%ROOTCA%
$ROOTCA
mkdir %HOSTNAME% CD %HOSTNAME%
openssl genrsa -out %HOSTNAME%.key 2048
openssl req -new -key %HOSTNAME%.key -out %HOSTNAME%.csr
openssl x509 -req -in %HOSTNAME%.csr -CA ..\%ROOTCA%\%ROOTCA%.crt -CAkey ..\%ROOTCA%\%ROOTCA%.key -CAcreateserial -out %HOSTNAME%.crt -days 500
openssl verify -CAfile ..\%ROOTCA%\%ROOTCA%.crt $HOSTNAME.crt
HOSTNAME.crt: OK
cat %HOSTNAME%.crt %HOSTNAME%.key > %HOSTNAME%.pem
/tmp
MyRootCA.crt
MyMongoServer.com.pem
cd /etc/ssl mv MyRootCA.crt . . . .
chown root:root MyRootCA.crt
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.