You are on page 1of 2

2 apt-get install openssl

3 apt-get update
4 find / -name *.csr
5 find / -name *.key
6 cd /etc/ssl
25 openssl genrsa -des3 -out srvu-master.key 2048
29 openssl rsa -in srvu-master.key -out server.key
30 openssl req -new -key server.key -out server.csr
33 openssl x509 -req -days 365 -in server.csr -signkey server.key -out
cupcake.crt
35 mv cupcake.crt certs/
36 mv server.key private/cupcake.key
37 ls
38 ls -R
39 ls
40 cd certs/
41 ls
42 cd ..
43 mv cupcake.crt /certs/
44 mv cupcake.crt certs/
45 ls
46 cd certs/
47 ls
48 history
49 cd ..
50 ls
51 cd /
52 ls /etc/apache2/sites-available/
53 cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-
available/cupcake-ssl.com.conf
54 nano /etc/apache2/sites-available/cupcake-ssl.com.conf
55 a2enmod ssl
56 a2ensite cupcake-ssl.com.conf
57 systemctl restart apache2
58 nano /etc/apache2/sites-available/cupcake-ssl.com.conf
59 ls
60 cp /etc/apache2/sites-available/cupcake-ssl.com.conf /etc/apache2/sites-
available/cupcakesite2-ssl.com.conf
61 ls
62 nano /etc/apache2/sites-available/cupcakesite2-ssl.com.conf
63 cd /etc/openssl
64 cd /etc/ssl
65 ls
66 openssl rsa -in srvu-master.key -out cupcakesite2.key
67 ls
68 openssl req -new -key cupcakesite2.key -out cupcakesite2.csr
69 ls
70 openssl x509 -req -days 365 -in cupcakesite2.csr -signkey cupcakesite2.key
-out cupcakesite2.crt
71 mv cupcakesite2.key private/
72 mv cupcakesite2.crt certs/
73 a2ensite cupcakesite2
74 a2ensite cupcakesite2.com.conf
75 a2ensite cupcakesite2-ssl.com.conf
76 systemctl restart apache2
77 nano /etc/hosts
78 curl -I www.cupcakesite2.com:443
79 ls
80 ls /home/usuario2/public_html/
81 nano /etc/apache2/sites-available/cupcakesite2-ssl.com.conf
82 nano /etc/ports
83 nano /etc/port
84 nano /etc/apache2/ports.conf
85 ip addr
86 curl -I www.cupcakesite2.com:443
87 nano /etc/hosts
88 curl -I www.cupcake.com:443
89 apachectl -S
90 nano /etc/hosts
91 curl -I cupcakesite2.com:443
92 history
93 a2enmod ssl
94 2dissite cupcakesite2-ssl.com.conf
95 a2dissite cupcakesite2-ssl.com.conf
96 systemctl restart apache2
97 a2ensite cupcakesite2-ssl.com.conf
98 systemctl restart apache2
99 curl -I cupcakesite2.com:443
100 curl -I www.cupcakesite2.com:443
101 curl -I https://www.cupcakesite2.com
102 curl -I www.cupcakesite2.com:443
103 curl -kI www.cupcakesite2.com:443
104 curl -kI https://www.cupcakesite2.com
105 history

You might also like