You are on page 1of 5

Teacher Name:

Sir Mahaz Khan

Student Name:
Tooba Arshad

Roll No:
221526
Step#1
CA Certificate generation:
The command executed below generates a self-signed X.509 certificate using the RSA
certificate for a Certificate Authority (CA).

Command:
openssl req -x509 -newkey rsa:4096 -days 365 -keyout ca-key.pem -out ca-cert.pem

Step#2:
CA Certificate Inspection:
Command executed below is used to display the textual representation of an X.509
certificate.

Command:
openssl x809 -in ca-cert.pem -noout –text

Step#3
Server Certificate Generation:
This OpenSSL command generates a new private key and a certificate signing request for a
server.
Command:
openssl req -newkey rsa:4096 -keyout server-key.pem -out server-req.pem

Step#4: Signing of CSR using CA Certificate:


This OpenSSL command signs a CSR with a CA to generate a signed certificate.

Command:
openssl x509 -rep -in server-req.pem -CA ca-cert.pem -CAKey ca-key.perm -CAcreateserial
-out server-signed-cert.pem

You might also like