• Linux Commands

    Configure Apache With Self-Signed TLS/SSL Certificate on Ubuntu 16.04

    Step 1: Generating the certificate To create a private key, run the commands below cd /etc/ssl/private openssl genrsa -aes128 -out server.key 2048When creating a private key, you will be prompted to create and confirm and password or passphrase. However, it’s best to create a key without a passphrase. To remove the passphrase from the key you just created, run the commands below. openssl rsa -in server.key -out server.key Step 2: Create A Certificate Signing Request After creating the private key, run the commands below to create a certificate signing request using the server private key. Certificate signing request or CSR is used to provide some details of the entity and…

  • Email,  Linux Commands

    Command to check postfix configuration

    root@ubuntu:/var/log# postconf -nalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasesappend_dot_mydomain = nobiff = noinet_interfaces = allinet_protocols = allmailbox_size_limit = 0mydestination = $myhostname, ubuntu, localhost.localdomain, , localhostmyhostname = ubuntumynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128readme_directory = norecipient_delimiter = +relayhost =smtp_tls_session_cache_database = btree:${data_directory}/smtp_scachesmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinationsmtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pemsmtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.keysmtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scachesmtpd_use_tls = yes