Lab 01: Certificate Authority in Apache - squatchulator/Tech-Journal GitHub Wiki
Create the Certificate Authority
mkdir /etc/pki/CAyum install openssltouch index.txt(CA uses this to keep track of certificates)echo 1000 > serial(used to assign serial numbers to certificates) Create CA's Private Keyopenssl genrsa -des3 -out private/cakey.pem 2048Create Certificateopenssl req -new -x509 -days 365 -key private/cakey.pem -out cacert.pem
Creating Certificate Request & Send from Web Server:
openssl req -newkey rsa:2048 -keyout websrv.key -out websrv.csrscp websrv.csr [email protected]:/(Replace with remote IP)
Sign the Certificate on the Certificate Authority
openssl ca -out websrv.crt -infiles websrv.csr- Check that the .crt is signed and looks right with
ls -landcat scp websrv.crt [email protected]:/(Replace with remote IP)