These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
| Brick –> is basic storage (directory) on a server in the trusted storage pool. | |
| Volume –> is a logical collection of bricks. | |
| Cluster –> is a group of linked computers, working together as a single computer. | |
| Distributed File System –> A filesystem in which the data is spread across the multiple storage nodes and allows the clients to access it over a network. | |
| Client –> is a machine which mounts the volume. | |
| Server –> is a machine where the actual file system is hosted in which the data will be stored. | |
| Replicate –> Making multiple copies of data to achieve high redundancy. | |
| Fuse –> is a loadable kernel module that lets non-privileged users create their own file systems without editing kernel code. | |
| glusterd –> is a daemon that runs on all servers in the trusted storage pool. | |
| RAID –> Redundant Array of Inexpensive Disks (RAID) is a technology that provides increased storage reliability through redundancy |
| #!/bin/bash | |
| # Force outbound traffic through the attached floating IP | |
| NET_INT="eth0" | |
| CURL_TIMEOUT=3 | |
| echo -n "Setting floating IP as the default gateway: " | |
| # Check there's a floating IP attached to this droplet | |
| if [ "$(curl -s --connect-timeout $CURL_TIMEOUT http://169.254.169.254/metadata/v1/floating_ip/ipv4/active)" != "true" ]; then |
| ## | |
| ## How to install mcrypt in php7.2 / php7.3 | |
| ## Linux / MacOS / OSX | |
| ## | |
| ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
| # |
| # copied from https://www.e-rave.nl/create-a-self-signed-ssl-key-for-postfix | |
| openssl genrsa -des3 -out mail.domain.tld.key 2048 | |
| chmod 600 mail.domain.tld.key | |
| openssl req -new -key mail.domain.tld.key -out mail.domain.tld.csr | |
| openssl x509 -req -days 365 -in mail.domain.tld.csr -signkey mail.domain.tld.key -out mail.domain.tld.crt | |
| openssl rsa -in mail.domain.tld.key -out mail.domain.tld.key.nopass | |
| mv mail.domain.tld.key.nopass mail.domain.tld.key | |
| openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 | |
| chmod 600 mail.domain.tld.key |