Question
Certificate Generation: Use the Java Keytool to generate a self-signed certificate. There is no additional installation needed if you have Java installed on your computer
Certificate Generation: Use the Java Keytool to generate a self-signed certificate. There is no additional installation needed if you have Java installed on your computer or through Eclipse, but you need to find your Java home location to find the keytool.exe. Please note: You will generate certificates in Project Two and use the Java Keytool through Eclipse.
a, Begin by accessing the keystore by copying the command below. You must copy this text exactly and paste it into the command line. Be sure to revise the text where the word password appears with a unique and secure password. This will be your password for the entire exercise. You may refer to the Oracle guidelines on the Key and Certificate Management Tool for additional guidance; this resource is linked in the Supporting Materials section.
keytool.exe -genkey - keyalg RSA -alias selfsigned -keypass password -keystore keystore.jks -storepass password -validity 360 -keysize 2048
b. Enter a secure password for the keystore (shown as password). You must copy this text exactly and paste it into the command line. Be sure to revise the text where the word password appears with a unique and secure password. This password will be used again shortly.
keytool.exe -export -alias selfsigned -storepass password -file server.cer -keystore keystore.jks
c. Use a command to print out the CER file using the command line.
keytool.exe -printcert -file server.cer
d. To demonstrate that the certificate was effectively generated, submit a screenshot of the printout of the certificate information found in the server.cer file created in the previous step. An example is shown below:
e. Answer a series of questions with unique answers. You may use fictional information to fill in answers to the questions. You should submit a screenshot with the questions and answers to show that you have entered all the necessary field information as shown above.
f. Lastly, you will be prompted to enter the same password as before for accessing keystore to export the certificate to a CER file.
keytool.exe -export -alias selfsigned -storepass changeme -file server.cer -keystore keystore.jks
What to Submit: a screenshot of the certificate information form filled out with all fields completed, and (3) a screenshot of the printout of the server.cer file to demonstrate that the certificate has been effectively generated.
Dwner: CN=1 localhost, OU=SNHU,O=SNHU,L= Manchester, ST=NH,C=US Issuer: CN=1 localhost, OU=SNHU,O=SNHU,L= Manchester, ST=NH,C=US Serial number: a36f1802be892160 Valid from: Thu Mar 12 20:41:49 PDT 2020 until: Sun Mar 07 19:41:49 PST 2021 Certificate fingerprints: SHA1: 45:92:72:D1:28:63:A1:71:E7:AE:8C:38:59:8B:D3:51:2E:5B:03:F7 SHA256: 45:98:62:A6:B9:72:01:E7:2B:2A:81:AC:6:D:E6:FD:F9:44:48:84:CE:A1:E7:6D:D6:F9:C2:46:C3:AC:69:A2 ignature algorithm name: SHA256withRSA Subject Public Key Algorithm: 2048-bit RSA key version: 3 Extensions: 11: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ ge0e: CC 4420462A22 DD CA 61 C3 24 EE 69 7E 0890 .D-F*"..a.\$.i... 2010: E8 EB D5 97
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started