2021年3月11日木曜日

SSL更新

WebページのSSL化だけど、結構、いい加減なのでここで少しだけ

まとめたい!


自分のWebページで使っているのは?

①アパッチ

②トルネード

③noVNC


 diff /root/private.key /etc/ssl/private/wwwsamplecom.key

  564  find / -name wwwsamplecom.key

  565  find / -name "*.key"

  566  diff /etc/ssl/private/wwwsamplecom.key /etc/ssl/private/new.key

  567  diff /etc/ssl/private/wwwsamplecom.key /var/www/html/wwwsamplecom.key

  568  diff /var/www/html/wwwsamplecom.crt /etc/ssl/certs/wwwsamplecom.crt

  569  diff /etc/ssl/private/wwwsamplecom.key /var/www/html/wwwsamplecom.key

  570  diff /var/www/html/wwwsamplecom.key /etc/ssl/private/wwwsamplecom.key

  571  cd


●ファイルのある場所を探す

find / -name wwwsamplecom.key

find / -name "*.key"

  

ディレクトリのみ表示したい場合は

ls -d */



/etc/init.d/boot_init

の内容





 36 su root -c "/var/www/html/netpdb/kidou.sh"

 37 su root -c "/root/vnc-c.sh"

 38 

 39 su root -c "/root/vnc.sh 1"

 40 su root -c "/root/vnc.sh 2"

 41 su root -c "/root/vnc.sh 3"

 42 #su root -c "/root/vnc.sh 4"

 43 su root -c "/root/vnc.sh 5"

 44 

 45 su root -c "vncserver :9"

 46 #su root -c "vncserver :3"

 47