Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1;33;40m---------------------------------------------
- (B[m
- Enter vhost domain name to add (without www. prefix): zeesixtyone.com
- Create a self-signed SSL certificate Nginx vhost? [y/n]: n
- [1;32;40mTo get Letsencrypt SSL certificate, you must already have updated intended
- (B[m[1;32;40mdomain vhost name's DNS A record to this server's IP addresss.
- (B[m[1;32;40mIf top level domain, DNS A record is needed also for www. version of domain
- (B[m[1;32;40motherwise, Letsencrypt domain name validation will fail.
- (B[m
- [1;33;40mzeesixtyone.com is a top level domain
- (B[m[1;33;40myour server IP address: 107.170.139.232
- (B[m[1;33;40mcurrent DNS A record IP address for zeesixtyone.com is: 107.170.139.232
- (B[m[1;33;40mcurrent DNS A record IP address for www.zeesixtyone.com is: 107.170.139.232
- (B[m
- Abort this Nginx vhost domain setup to setup proper DNS A record(s) first? [y/n]: n
- Obtain Letsencrypt Free SSL certificate (90 day expiry / renew every 60 days) ? [y/n]: y
- Create FTP username for vhost domain (enter username): test
- Auto generate FTP password (recommended) [y/n]: y
- FTP username you entered: <removed>
- FTP password auto generated: <removed>
- Password:
- Enter it again:
- [1;33;40m---------------------------------------------------------------
- (B[m[1;32;40mSSL Vhost Setup...
- (B[m[1;33;40m---------------------------------------------------------------
- (B[m
- [1;33;40m---------------------------------------------------------------
- (B[m[1;32;40mGenerating self signed SSL certificate...
- (B[m[1;32;40mCSR file can also be used to be submitted for paid SSL certificates
- (B[m[1;32;40mIf using for paid SSL certificates be sure to keep both private key and CSR safe
- (B[m[1;32;40mcreating CSR File: zeesixtyone.com.csr
- (B[m[1;32;40mcreating private key: zeesixtyone.com.key
- (B[m[1;32;40mcreating self-signed SSL certificate: zeesixtyone.com.crt
- (B[mGenerating a 2048 bit RSA private key
- ..........................................+++
- ...........................+++
- writing new private key to 'zeesixtyone.com.key'
- -----
- Signature ok
- subject=/C=US/ST=California/L=Los Angeles/O=zeesixtyone.com/OU=zeesixtyone.com/CN=zeesixtyone.com
- Getting Private key
- [1;33;40m---------------------------------------------------------------
- (B[m[1;32;40mGenerating backup CSR and private key for HTTP Public Key Pinning...
- (B[m[1;32;40mcreating CSR File: zeesixtyone.com-backup.csr
- (B[m[1;32;40mcreating private key: zeesixtyone.com-backup.key
- (B[mGenerating a 2048 bit RSA private key
- ...............................................................+++
- .+++
- writing new private key to 'zeesixtyone.com-backup.key'
- -----
- [1;33;40m---------------------------------------------------------------
- (B[m[1;32;40mExtracting Base64 encoded information for primary and secondary
- (B[m[1;32;40mprivate key's SPKI - Subject Public Key Information
- (B[m[1;32;40mPrimary private key - zeesixtyone.com.key
- (B[m[1;32;40mBackup private key - zeesixtyone.com-backup.key
- (B[m[1;32;40mFor HPKP - HTTP Public Key Pinning hash generation...
- (B[m
- [1;32;40mextracting SPKI Base64 encoded hash for primary private key = zeesixtyone.com.key ...
- (B[mwriting RSA key
- gtdTP07x3YMXlL8s6MAgNKT/ddXwjpnWqhFvpN0uUCg=
- [1;32;40mextracting SPKI Base64 encoded hash for backup private key = zeesixtyone.com-backup.key ...
- (B[mwriting RSA key
- BsDuE5DILp3dkhIxxqnLYAcX3WEOD0bpzjmyazbaFvY=
- [1;32;40mHTTP Public Key Pinning Header for Nginx
- (B[m
- [1;32;40mfor 7 days max-age including subdomains
- (B[m
- add_header Public-Key-Pins 'pin-sha256="gtdTP07x3YMXlL8s6MAgNKT/ddXwjpnWqhFvpN0uUCg="; pin-sha256="BsDuE5DILp3dkhIxxqnLYAcX3WEOD0bpzjmyazbaFvY="; max-age=86400; includeSubDomains';
- [1;32;40mfor 7 days max-age excluding subdomains
- (B[m
- add_header Public-Key-Pins 'pin-sha256="gtdTP07x3YMXlL8s6MAgNKT/ddXwjpnWqhFvpN0uUCg="; pin-sha256="BsDuE5DILp3dkhIxxqnLYAcX3WEOD0bpzjmyazbaFvY="; max-age=86400';
- [1;33;40m---------------------------------------------------------------
- (B[m[1;32;40mGenerating dhparam.pem file - can take a few minutes...
- (B[mGenerating DH parameters, 2048 bit long safe prime, generator 2
- This is going to take a long time
- .........................................+.............+...............................................................................................................................................................................................................................................................................................................................................................................................+...........................+..............................................................+........................................................+...........................+...+......................................................+.......................................................+..................................................................................................................................................+......+................+....................................................................................................................................................+...........................................+............+.........................................................................................................+.......+.............+............................................................................................................................+.........+...................................................................................................................+..............................................+...........................................+...........................................................+........................+..............................................................................................................................................................................................................+.............................+.......................................+..........................................................................................................................................+.....................................................+.......................................+.............................................................................................................+...........................................+.+..........................................+.............................................................+.....................+..........................................................................+..............................................+........................................................................+.............................+.....................+...............................................................................+..................................................................................+...........................................................................+...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+...............................................................................+..............................+........................................................................................................+..............................+.................................................................+..........................................................................................................................................................................+...............................................................................................................................................................................................................................................................................+......................................................................................................................+..............+...........................................+...............................................................................................+....................+............................+...................................................+.......................................................................+.....................................................................................................................................................................................................................................................................................................................+...............................................................................................................................................+...................................................................................................................+..............+.....................................................................................................................+.+...............................................................................................+.......+......................+.........................................................+..++*++*
- [1;33;40mdhparam file generation time: 73.195943122
- (B[m
- [1;33;40m-------------------------------------------------------------
- (B[mservice nginx reload
- nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
- nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
- Reloading nginx: [60G[[0;32m OK [0;39m]
- service pure-ftpd restart
- Stopping pure-ftpd: [60G[[0;32m OK [0;39m]
- Starting pure-ftpd: [60G[[0;32m OK [0;39m]
- [1;33;40m----------------------------------------------------
- (B[m[1;32;40msystem memory profile: 289 MB available
- (B[m[1;33;40m----------------------------------------------------
- (B[m total used free shared buffers cached
- Mem: 490 302 188 18 21 101
- Low: 490 302 188
- High: 0 0 0
- -/+ buffers/cache: 178 311
- Swap: 0 0 0
- [1;32;40minstalling or updating letsencrypt client
- (B[m
- fatal: destination path 'letsencrypt' already exists and is not an empty directory.
- Updating letsencrypt and virtual environment dependencies......Command "/root/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-_tG5r0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lSbzy6-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-_tG5r0/cryptography
- [1;32;40msetup general /etc/letsencrypt/webroot.ini letsencrypt config file
- (B[mtouch: cannot touch `/etc/letsencrypt/webroot.ini': No such file or directory
- inc/letsencrypt.inc: line 78: /etc/letsencrypt/webroot.ini: No such file or directory
- grep: /etc/letsencrypt/webroot.ini: No such file or directory
- [1;32;40m/root/.local/share/letsencrypt/bin/letsencrypt not found
- (B[m
- [1;33;40m-------------------------------------------------------------
- (B[m[1;37;40mFTP hostname : 107.170.139.232
- (B[m[1;37;40mFTP port : 21
- (B[m[1;37;40mFTP mode : FTP (explicit SSL)
- (B[m[1;37;40mFTP Passive (PASV) : ensure is checked/enabled
- (B[m[1;37;40mFTP username created for zeesixtyone.com : <removed>
- (B[m[1;37;40mFTP password created for zeesixtyone.com : <removed>
- (B[m[1;33;40m-------------------------------------------------------------
- (B[m[1;37;40mvhost for zeesixtyone.com created successfully
- (B[m
- [1;33;40mdomain: http://zeesixtyone.com
- (B[m[1;37;40mvhost conf file for zeesixtyone.com created: /usr/local/nginx/conf/conf.d/zeesixtyone.com.conf
- (B[m
- [1;37;40mvhost ssl for zeesixtyone.com created successfully
- (B[m
- [1;33;40mdomain: https://zeesixtyone.com
- (B[m[1;37;40mvhost ssl conf file for zeesixtyone.com created: /usr/local/nginx/conf/conf.d/zeesixtyone.com.ssl.conf
- (B[m[1;37;40m/usr/local/nginx/conf/ssl_include.conf created
- (B[m[1;33;40mSelf-signed SSL Certificate: /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.crt
- (B[m[1;33;40mSSL Private Key: /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.key
- (B[m[1;33;40mSSL CSR File: /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.csr
- (B[m[1;33;40mBackup SSL Private Key: /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com-backup.key
- (B[m[1;33;40mBackup SSL CSR File: /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com-backup.csr
- (B[m
- [1;37;40mupload files to /home/nginx/domains/zeesixtyone.com/public
- (B[m[1;37;40mvhost log files directory is /home/nginx/domains/zeesixtyone.com/log
- (B[m
- [1;33;40m-------------------------------------------------------------
- (B[m[1;37;40mCurrent vhost listing at: /usr/local/nginx/conf/conf.d/
- (B[m
- Dec 18 00:33 845 ssl.conf
- Dec 18 00:33 1.1K demodomain.com.conf
- Dec 18 00:42 1.6K virtual.conf
- Dec 18 03:35 1.7K xf.zeesixtyone.com.conf
- Dec 18 03:35 4.0K xf.zeesixtyone.com.ssl.conf
- Dec 18 13:39 1.6K venor.xyz.conf
- Dec 18 13:39 3.9K venor.xyz.ssl.conf
- Dec 18 21:30 1.7K zeesixtyone.com.conf
- Dec 18 21:30 4.0K zeesixtyone.com.ssl.conf
- [1;33;40m-------------------------------------------------------------
- (B[m[1;37;40mCurrent vhost ssl files listing at: /usr/local/nginx/conf/ssl/zeesixtyone.com
- (B[m
- Dec 18 21:28 1.7K zeesixtyone.com.key
- Dec 18 21:28 1.1K zeesixtyone.com.csr
- Dec 18 21:28 1.3K zeesixtyone.com.crt
- Dec 18 21:28 1.7K zeesixtyone.com-backup.key
- Dec 18 21:28 1.1K zeesixtyone.com-backup.csr
- Dec 18 21:28 45 hpkp-info-primary-pin.txt
- Dec 18 21:28 45 hpkp-info-secondary-pin.txt
- Dec 18 21:30 424 dhparam.pem
- [1;33;40m-------------------------------------------------------------
- (B[m[1;37;40mCommands to remove zeesixtyone.com
- (B[m
- [1;37;40m rm -rf /usr/local/nginx/conf/conf.d/zeesixtyone.com.conf
- (B[m[1;37;40m rm -rf /usr/local/nginx/conf/conf.d/zeesixtyone.com.ssl.conf
- (B[m[1;37;40m rm -rf /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.crt
- (B[m[1;37;40m rm -rf /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.key
- (B[m[1;37;40m rm -rf /usr/local/nginx/conf/ssl/zeesixtyone.com/zeesixtyone.com.csr
- (B[m[1;37;40m rm -rf /usr/local/nginx/conf/ssl/zeesixtyone.com
- (B[m[1;37;40m rm -rf /home/nginx/domains/zeesixtyone.com
- (B[m[1;37;40m service nginx restart
- (B[m[1;33;40m-------------------------------------------------------------
- (B[m
Add Comment
Please, Sign In to add comment