Learn about Centmin Mod LEMP Stack today
Become a Member

Install Settings after install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by MarkKiss, Sep 2, 2015.

  1. MarkKiss

    MarkKiss New Member

    21
    3
    3
    Sep 2, 2015
    Ratings:
    +3
    Local Time:
    1:29 AM
    Hi All,

    I just install my first server

    CentOS 7 64bit + CentMinMod (Centmin Mod 1.2.3-eva2000.08)

    next step was Getting Started Guide - CentminMod.com LEMP Nginx web stack for CentOS

    add my first host and generated self SSL

    But I didn't find where I can change details

    Common Name: =31.31.xx.xx (IP my machine)
    Organization: Default Company Ltd
    Country: US
    State: Califorania
    Locality: Los Angeles

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:29 AM
    Nginx 1.13.x
    MariaDB 5.5
    Unfortunately, for self-signed SSL certificate you can't change those details after it has been created. Only can change before creation. But in order for the process to be automated without user prompts, the self-signed SSL certificate needs to automatically fill in those fields. They don't really mean much for domain validated or self-signed SSL certificates so you can put whatever you want and doesn't need to reflect the true location.

    If you want to change these settings before creation of self-signed SSL certificate you need to edit line 30 of inc/nginx_addvhost.inc ensuring country code is valid 2 digit country code. I'd advise leaving it as is for self-signed SSL certificates especially.

    For 123.09beta01 I might add variables in centmin.sh for the default self-signed SSL certificate values for the following so you can edit it as a default template for all created self-signed SSL certificates
    Code:
    openssl req -new -newkey rsa:2048 -sha256 -nodes -out ${vhostname}.csr -keyout ${vhostname}.key -subj "/C=US/ST=California/L=Los Angeles/O=${vhostname}/CN=${vhostname}"
    for
    Code:
    C=
    ST=
    L=
    O=
     
  3. MarkKiss

    MarkKiss New Member

    21
    3
    3
    Sep 2, 2015
    Ratings:
    +3
    Local Time:
    1:29 AM
    Great thank you