Labs



OPENSSLThe following steps will enable you to create your own certificates on a windows machine using OpenSSLcommand line tool.Download and install OpenSSL tool, using the link ‘Win64 OpenSSL v.1.0.2k’ size23 MB.Unzip it anywhere on your computer. Somewhere with read and write permission. And install it.3. Path settingStart a command-prompt. Click Start -> Programs -> Accessories -> Command promptOr just Start -> cmdGive the command opensslIf the command is not recognized you must change the environment variables PATH (Path) and maybe CLASSPATH. Set your environment variable path to include present working directory (.) and your folder with the OpenSSL toolkit it (e.g. C:\Program Files(x86)\openssl/bin).For more details; See the Appendix on environment variables at the end of this document.You can run the windows cmd from a particular directory/folder by Right clicking in the directory/folder while keeping the Shift key down. Now choose Open Command window here.This way you can create your keys/certificate exactly where you want it.3. Creation of certificatesFirst create a directory for certificatesNow you are ready to create your private public keys. Type the following in your command window:openssl –req –x509 –days 365 –newkey rsa:2048 –keyout my-private-key.pem –out my-cert.pem?Explain the above openssl command, the options and other params?Find five more openssl options and explain them, don’t do it?FIX the ERROR; If you encounter an ERROR: unable to write random stateNow execute the following commandopenssl pkcs12 –export –in my-cert.pem –inkey my-private-key.pem –out my-keys-container.pfx?Explain the above openssl command, the options and other paramsFinally Run the following command and explain, in detail, what does it do?openssl pkcs12 -in my-keys-container.pfx -clcerts -nokeys -out my-public-cert-key.pemAppendice: Environment variables PATH and CLASSPATHSelect Start -> Control PanelChoose System and Security -> SystemClick Advanced system settings > Advanced tabClick on Environment Variables, and under System Variables, find PATH, and click on it.In the Edit windows, modify PATH by adding the directory of the respective file to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value. Remember the semicolons as splitter characters!!Click OK everywhereReopen Command prompt window, and run the command again.Maybe you will have to restart your computer….Alternative explanatoion1. Type in sysdm.cpl OR control sysdm.cpl and press Ok2. In this new window choose Advance and then Click on Environment variables3. In the system variable window double click the path variable and append a semicolon and the path to your openssl/bin (for example; C:\OpenSSL-Win32\bin) directory to it.4. Click OK, OK and Ok ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download