Wednesday, September 4, 2019

VMware - Increasing Disk sizes in Linux

http://echenh.blogspot.co.nz/2010/04/how-to-extend-lvm-on-vmware-guest-os.html
http://conrey.org/2011/05/18/lvm-and-vmware-linux-guests-just-do-it/

1. Increase Disk Size
2. Create Partition for used space using cfdisk / Primary Disk
3. pvcreate /dev/sda3
4. vgextend vg_vmlinuxcentos6 /dev/sda3
5. lvextend -l +100%FREE /dev/vg_vmlinuxcentos6/lv_root
6. lvdisplay
7. resize2fs /dev/vg_vmlinuxcentos6/lv_root

Sunday, April 28, 2019

Creating ASA Cert Package from LetsEncrypt certs on Linux


openssl pkey -des -in /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -pubout /etc/letsencrypt/live/asa.wjw.nz/pubkey.pem

openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem > cert.base64
openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/privkey-enc.pem > cert.base64
openssl pkcs12 -export -out /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx -inkey /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem -certfile /etc/letsencrypt/live/asa.wjw.nz/fullchain.pem

cp /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx /media/nas-backup