{"id":7200,"date":"2018-11-05T15:41:02","date_gmt":"2018-11-05T12:41:02","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/centos-passbolt-password-manager-installation\/"},"modified":"2018-11-05T15:41:02","modified_gmt":"2018-11-05T12:41:02","slug":"how-to-install-passbolt-self-hosted-password-manager-on-centos-7","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7\/","title":{"rendered":"How to Install Passbolt Self-Hosted Password Manager on CentOS 7"},"content":{"rendered":"<p>Passbolt is a free and open source password manager for teams. It allows team members to store and share credentials\/password securely. Passbolt is created with PHP and can be run under the LEMP stack or run as docker container.<\/p>\n<p>In this tutorial, we will show you step-by-step install and configure open source password manager &#8216;Passbolt&#8217; on CentOS 7 server. Passbolt is a web application developed with PHP, and we will run it under the LEMP (Linux, Nginx, MySQL\/MariaDB, and PHP-FPM).<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>CentOS 7<\/li>\n<li>Root privileges<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do?<\/h2>\n<ol>\n<li>Install Dependencies<\/li>\n<li>Install and Configure MariaDB Database<\/li>\n<li>Install Nginx and PHP-FPM<\/li>\n<li>Generate SSL Letsencrypt<\/li>\n<li>Configure Nginx and PHP-FPM<\/li>\n<li>Download Passbolt and Generate OpenPGP Key<\/li>\n<li>Install Passbolt<\/li>\n<li>Passbolt Post-Installation<\/li>\n<li>Additional\u00a0Security Server Setup<\/li>\n<\/ol>\n<h2 id=\"step-install-dependencies\">Step 1 &#8211; Install Dependencies<\/h2>\n<p>The first thing that we will do for this guide is to install all package dependencies needed for the Passbolt installation, including installing EPEL and Remi PHP repositories, php composer, gcc etc.<\/p>\n<p>Add the EPEL repository.<\/p>\n<p class=\"command\">sudo yum -y install yum-utils epel-release<\/p>\n<p>Add and enable the Remi PHP repository.<\/p>\n<p class=\"command\">sudo yum -y install &#8216;http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm&#8217;<br \/>sudo yum-config-manager &#8211;enable &#8216;remi-php72&#8217;<\/p>\n<p>Now install packages dependencies composer, git gcc etc using the yum command below.<\/p>\n<p class=\"command\">sudo yum -y install unzip wget composer policycoreutils-python git gcc<\/p>\n<p>Wait for all packages installation.<\/p>\n<h2 id=\"step-install-and-configure-mysqlmariadb\">Step 2 &#8211; Install and Configure MySQL\/MariaDB<\/h2>\n<p>In this step, we will install the MariaDB database and then create a new database and user for Passbolt installation.<\/p>\n<p>Install MariaDB server using the yum command below.<\/p>\n<p class=\"command\">sudo yum -y install mariadb-server<\/p>\n<p>After the installation is complete, start the MariaDB service and enable it to launch everytime at system boot time.<\/p>\n<p class=\"command\">sudo systemctl start mariadb<br \/>sudo systemctl enable mariadb<\/p>\n<p>Now we need to configure the &#8216;root&#8217; password for MariaDB. Run the &#8216;mysql_secure_installation&#8217; command below.<\/p>\n<p class=\"command\">mysql_secure_installation<\/p>\n<p>Type your new root password.<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7.png\" alt=\"Install and Configure MySQL\/MariaDB\" width=\"500\" height=\"247\" title=\"\"><\/a><\/p>\n<p>And the MariaDB root password has been configured.<\/p>\n<p>Next, login to the MySQL shell using the &#8216;root&#8217; user.<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Create a new database and user named &#8216;passbolt&#8217; with password &#8216;hakase-labs&#8217;, run MySQL queries below.<\/p>\n<p class=\"command\">create database passbolt;<br \/>grant all on passbolt.* to &#8216;passbolt&#8217;@&#8217;localhost&#8217; identified by &#8216;hakase-labs&#8217;;<br \/>flush privileges;<br \/>quit;<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-1.png\" alt=\"Create database for passbolt\" width=\"500\" height=\"262\" title=\"\"><\/a><\/p>\n<p>The MariaDB server has been installed on CentOS 7 server, and the database for &#8216;Passbolt&#8217; installation has been created.<\/p>\n<h2 id=\"step-install-nginx-and-phpfpm\">Step 3 &#8211; Install Nginx and PHP-FPM<\/h2>\n<p>After installing the MariaDB server, we will install Nginx from the EPEL repository, and PHP-FPM packages using the Remi repository.<\/p>\n<p>Install Nginx web server.<\/p>\n<p class=\"command\">sudo yum -y install nginx<\/p>\n<p>After the installation is complete, start the Nginx service and enable it to launch everytime at system boot.<\/p>\n<p class=\"command\">sudo systemctl start nginx<br \/>sudo systemctl enable nginx<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-2.png\" alt=\"Install Nginx and PHP-FPM\" width=\"500\" height=\"172\" title=\"\"><\/a><\/p>\n<p>Now install PHP-FPM with all extensions needed using the yum command below.<\/p>\n<p class=\"command\">sudo yum -y install php-fpm php-intl php-gd php-mysql php-mcrypt php-pear php-devel php-mbstring php-fpm gpgme-devel<\/p>\n<p>And if the installation is complete, start the PHP-FPM service and enable it launch everytime at system boot.<\/p>\n<p class=\"command\">sudo systemctl start php-fpm<br \/>sudo systemctl enable php-fpm<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-3.png\" alt=\"Start php FPM daemon\" width=\"500\" height=\"222\" title=\"\"><\/a><\/p>\n<p>The Nginx web server and PHP-FPM has been installed.<\/p>\n<h2 id=\"step-generate-ssl-letsencrypt\">Step 4 &#8211; Generate SSL Letsencrypt<\/h2>\n<p>Install the certbot tool on the system.<\/p>\n<p class=\"command\">sudo yum -y install certbot<\/p>\n<p>Now stop the nginx service.<\/p>\n<p class=\"command\">sudo systemctl stop nginx<\/p>\n<p>And generate SSL Letsencrypt for the passbolt domain name &#8216;passbolt.hakase.io&#8217;.<\/p>\n<p>Run the certbot command below.<\/p>\n<p class=\"command\">sudo certbot certonly &#8211;standalone &#8211;agree-tos &#8211;no-eff-email &#8211;email <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"4d252c262c3e280d2a202c2421632e2220\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> -d passbolt.hakase.io<\/p>\n<p>The certbot tool will run a temporary web server for the verification.<\/p>\n<p>And when it&#8217;s complete, you will get your certificate on the &#8216;\/etc\/letsencrypt\/live\/&#8217; directory.<\/p>\n<h2 id=\"step-configure-nginx-and-phpfpm\">Step 5 &#8211; Configure Nginx and PHP-FPM<\/h2>\n<p>In this step, we will configure the Nginx web server by creating a new virtual host configuration for the Passbolt, and configure the PHP-FPM and install the PHP GnuPG support.<\/p>\n<h3 id=\"configure-phpfpm\">Configure PHP-FPM<\/h3>\n<p>Go to the &#8216;\/etc\/php-fpm.d&#8217; directory and edit the default pool configuration &#8216;www.conf&#8217; using\u00a0<a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a> editor.<\/p>\n<p class=\"command\">cd \/etc\/php-fpm.d\/<br \/>sudo vim www.conf<\/p>\n<p>Change the default user and group to the &#8216;nginx&#8217; user.<\/p>\n<pre>user = nginx&#13;\ngroup = nginx<\/pre>\n<p>Change the port listen for PHP-FPM to the sock file as below.<\/p>\n<pre>listen = \/var\/run\/php-fpm\/php-fpm.sock<\/pre>\n<p>Uncomment those lines below and change listen.owner and listen.group for the sock file to &#8216;nginx&#8217;.<\/p>\n<pre>listen.owner = nginx&#13;\nlisten.group = nginx&#13;\nlisten.mode = 0660<\/pre>\n<p>Save and exit.<\/p>\n<p>Now we need to change the owner of the PHP session directory and install the PHP GnuPG extension support.<\/p>\n<p>Change the permission of php session directory.<\/p>\n<p class=\"command\">sudo chgrp nginx \/var\/lib\/php\/session<\/p>\n<p>Install the PHP GnuPG extension using the pecl command and activate it.<\/p>\n<p class=\"command\">sudo pecl install gnupg<br \/>echo &#8220;extension=gnupg.so&#8221; &gt; \/etc\/php.d\/gnupg.ini<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-4.png\" alt=\"Configure Nginx and PHP-FPM\" width=\"500\" height=\"189\" title=\"\"><\/a><\/p>\n<p>The PHP GnuPG extension has been installed.<\/p>\n<h3 id=\"configure-nginx-virtual-host\">Configure Nginx Virtual Host<\/h3>\n<p>Go to the &#8216;\/etc\/nginx\/conf.d&#8217; directory and create a new virtual host file &#8216;passbolt.conf&#8217;.<\/p>\n<p class=\"command\">cd \/etc\/nginx\/conf.d\/<br \/>sudo vim passbolt.conf<\/p>\n<p>Paste configurations below.<\/p>\n<pre>server {&#13; listen 443;&#13; server_name passbolt.hakase.io;&#13; ssl on;&#13; ssl_certificate \/etc\/letsencrypt\/live\/passbolt.hakase.io\/fullchain.pem;&#13; ssl_certificate_key \/etc\/letsencrypt\/live\/passbolt.hakase.io\/privkey.pem;&#13; ssl_protocols TLSv1.2;&#13; ssl_prefer_server_ciphers on;&#13; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;&#13; ssl_session_tickets off;&#13; root \/var\/www\/passbolt;&#13; &#13; location \/ {&#13; try_files $uri $uri\/ \/index.php?$args;&#13; index index.php;&#13; }&#13; &#13; location ~ \\.php$ {&#13; fastcgi_index index.php;&#13; fastcgi_pass unix:\/var\/run\/php-fpm\/php-fpm.sock;&#13; fastcgi_split_path_info ^(.+\\.php)(.+)$;&#13; include fastcgi_params;&#13; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&#13; fastcgi_param SERVER_NAME $http_host;&#13; }&#13; &#13; location ~* \\.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\\d)$ {&#13; access_log off;&#13; log_not_found off;&#13; try_files $uri \/webroot\/$uri \/index.php?$args;&#13; }&#13;\n}<\/pre>\n<p>Save and exit.<\/p>\n<p>Test the nginx configuration and make sure there is no error.<\/p>\n<p class=\"command\">sudo nginx -t<\/p>\n<p>Now restart both Nginx and PHP-FPM services.<\/p>\n<p class=\"command\">sudo systemctl restart nginx<br \/>sudo systemctl restart php-fpm<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-5.png\" alt=\"Configure Nginx Virtual Host\" width=\"500\" height=\"165\" title=\"\"><\/a><\/p>\n<p>Configurations of Nginx web server and PHP-FPM has been completed successfully.<\/p>\n<h2 id=\"step-download-passbolt-and-generate-openpgp-key\">Step 6 &#8211; Download Passbolt and Generate OpenPGP Key<\/h2>\n<p>In this step, we will download the passbolt web application and generate a new OpenPGP key that will be used for the Passbolt API.<\/p>\n<p>Go to the &#8216;\/var\/www&#8217; directory and clone the passbolt web application.<\/p>\n<p class=\"command\">cd \/var\/www\/<br \/>git clone https:\/\/github.com\/passbolt\/passbolt_api.git passbolt\/<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-6.png\" alt=\"Download Passbolt and Generate OpenPGP Key\" width=\"500\" height=\"165\" title=\"\"><\/a><\/p>\n<p>Now install the &#8216;haveged&#8217; package and start the service.<\/p>\n<p class=\"command\">sudo yum -y install haveged<br \/>sudo systemctl start haveged<\/p>\n<p>Generate a new OpenPGP key using the gpg command below.<\/p>\n<p class=\"command\">gpg &#8211;gen-key<\/p>\n<p>Type your details such as email, the expiration days etc.<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-7.png\" alt=\"Generate GPG key\" width=\"500\" height=\"504\" title=\"\"><\/a><\/p>\n<p><strong>Note:<\/strong><\/p>\n<ul>\n<li>The PHP GnuPG extensions don&#8217;t support the OpenPGP Key passphrase, so let the passphrase stay blank.<strong><br \/><\/strong><\/li>\n<\/ul>\n<p>After it&#8217;s complete, check all key available and write down the &#8216;fingerprint&#8217; of your key.<\/p>\n<p class=\"command\">gpg &#8211;list-keys &#8211;fingerprint<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-8.png\" alt=\"List gpg key\" width=\"500\" height=\"142\" title=\"\"><\/a><\/p>\n<p>Now export the public and private key to the &#8216;\/var\/www\/passbolt&#8217; directory.<\/p>\n<p class=\"command\">gpg &#8211;armor &#8211;export-secret-keys <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c6aea7ada7b5a386aea7ada7b5a3e8afa9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> &gt; \/var\/www\/passbolt\/config\/gpg\/serverkey_private.asc<br \/>gpg &#8211;armor &#8211;export <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"e78f868c869482a78f868c869482c98e88\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> &gt; \/var\/www\/passbolt\/config\/gpg\/serverkey.asc<\/p>\n<p>And change all those keys permission and owner of the &#8216;\/var\/www\/passbolt&#8217; directory.<\/p>\n<p class=\"command\">sudo chmod 640 \/var\/www\/passbolt\/config\/gpg\/serverkey*<br \/>sudo chown -R\u00a0 nginx:nginx \/var\/www\/passbolt<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-9.png\" alt=\"Chown gpg key\" width=\"500\" height=\"163\" title=\"\"><\/a><\/p>\n<p>The Passbolt web application has been downloaded, and the OpenPGP key has been created.<\/p>\n<h2 id=\"step-install-passbolt\">Step 7 &#8211; Install Passbolt<\/h2>\n<p>Before installing all dependencies for &#8216;Passbolt&#8217;, we need to initialize keyring of gpg key for nginx user.<\/p>\n<p>Run the command below.<\/p>\n<p class=\"command\">sudo su -s \/bin\/bash -c &#8220;gpg &#8211;list-keys&#8221; nginx<\/p>\n<p>Now login to the &#8216;nginx&#8217; user and go to the &#8216;\/var\/www\/passbolt&#8217; directory.<\/p>\n<p class=\"command\">su -s \/bin\/bash nginx<br \/>cd \/var\/www\/passbolt\/<\/p>\n<p><a class=\"fancybox\" id=\"img-11\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-10.png\" alt=\"Install Passbolt\" width=\"500\" height=\"175\" title=\"\"><\/a><\/p>\n<p>Install all passbolt dependencies using the composer command below.<\/p>\n<p class=\"command\">composer install &#8211;no-dev<\/p>\n<p><a class=\"fancybox\" id=\"img-12\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-11.png\" alt=\"Composer install\" width=\"500\" height=\"365\" title=\"\"><\/a><\/p>\n<p>When it&#8217;s complete, copy the default config file of the app and edit it with <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a>.<\/p>\n<p class=\"command\">cp config\/passbolt.default.php config\/passbolt.php<br \/>vim config\/passbolt.php<\/p>\n<p>In the &#8216;App&#8217; section, change the domain name with your own domain name.<\/p>\n<pre> 'App' =&gt; [&#13; \/\/ A base URL to use for absolute links.&#13; \/\/ The url where the passbolt instance will be reachable to your end users.&#13; \/\/ This information is need to render images in emails for example&#13; 'fullBaseUrl' =&gt; 'https:\/\/passbolt.hakase.io',&#13; ],<\/pre>\n<p>In the &#8216;Datasources&#8217; configuration, type your details database info.<\/p>\n<pre> \/\/ Database configuration.&#13; 'Datasources' =&gt; [&#13; 'default' =&gt; [&#13; 'host' =&gt; 'localhost',&#13; \/\/'port' =&gt; 'non_standard_port_number',&#13; 'username' =&gt; 'passbolt',&#13; 'password' =&gt; 'hakase-labs',&#13; 'database' =&gt; 'passbolt',&#13; ],&#13; ],<\/pre>\n<p>Under the database configuration, add a new &#8216;ssl&#8217; configuration to force all connection to secure https.<\/p>\n<pre> 'ssl' =&gt; [&#13; 'force' =&gt; true,&#13; ],<\/pre>\n<p>For the SMTP mail configuration, change everything with your details.<\/p>\n<pre> \/\/ Email configuration.&#13; 'EmailTransport' =&gt; [&#13; 'default' =&gt; [&#13; 'host' =&gt; 'localhost',&#13; 'port' =&gt; 25,&#13; 'username' =&gt; 'user',&#13; 'password' =&gt; 'secret',&#13; \/\/ Is this a secure connection? true if yes, null if no.&#13; 'tls' =&gt; null,&#13; \/\/'timeout' =&gt; 30,&#13; \/\/'client' =&gt; null,&#13; \/\/'url' =&gt; null,&#13; ],&#13; ],&#13; 'Email' =&gt; [&#13; 'default' =&gt; [&#13; \/\/ Defines the default name and email of the sender of the emails.&#13; 'from' =&gt; ['<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3949584a4a5b56554d7940564c4b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>_organization.com' =&gt; 'Passbolt'],&#13; \/\/'charset' =&gt; 'utf-8',&#13; \/\/'headerCharset' =&gt; 'utf-8',&#13; ],&#13; ],<\/pre>\n<p>And lastly, paste the &#8216;fingerprint&#8217; of your OpenPGP key and uncomment those public and private configuraiton lines.<\/p>\n<pre> 'serverKey' =&gt; [&#13; \/\/ Server private key fingerprint.&#13; 'fingerprint' =&gt; '63BA4EBB65126A6BE334075DD210E985E2ED02E5',&#13; 'public' =&gt; CONFIG . 'gpg' . DS . 'serverkey.asc',&#13; 'private' =&gt; CONFIG . 'gpg' . DS . 'serverkey_private.asc',&#13; ],<\/pre>\n<p>Save and exit.<\/p>\n<p><a class=\"fancybox\" id=\"img-13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-12.png\" alt=\"Passbolt config file\" width=\"500\" height=\"331\" title=\"\"><\/a><\/p>\n<p>Now install &#8216;Passbolt&#8217; using the command below.<\/p>\n<p class=\"command\">.\/bin\/cake passbolt install<\/p>\n<p>You will be asked to create a new admin user and password &#8211; type your details.<\/p>\n<p><a class=\"fancybox\" id=\"img-14\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/14.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-13.png\" alt=\"cake passbolt install\" width=\"500\" height=\"205\" title=\"\"><\/a><\/p>\n<p>And in the end, you will be given the &#8216;registration&#8217; link, write it down on your note.<\/p>\n<h2 id=\"step-passbolt-postinstallation\">Step 8 &#8211; Passbolt Post-Installation<\/h2>\n<p>Open your web browser and install the &#8216;Passbolt&#8217; extensions of your web browser.<\/p>\n<p>Following is the link of passbolt extension for Chrome browser. Install the extension.<\/p>\n<p><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/passbolt-extension\/didegimhafipceonhjepacocaffmoppf\" target=\"_blank\" rel=\"noopener\">https:\/\/chrome.google.com\/webstore\/detail\/passbolt-extension<\/a><\/p>\n<p>Now open a new tab and paste the &#8216;registration&#8217; link given to the address bar. Mine was:<\/p>\n<p><em><strong>https:\/\/passbolt.hakase.io\/setup\/install\/b830cc87-1aa5-4f6f-95f4-9be21accdefa\/103001a4-39a1-4bb9-866c-822ac0f7c76f<\/strong><\/em><\/p>\n<p>And you will a page similar to the one shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-15\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/15.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-14.png\" alt=\"Passbolt plugin check\" width=\"500\" height=\"284\" title=\"\"><\/a><\/p>\n<p>Check the box on the bottom and click the &#8216;Next&#8217; button. Now you will be asked for creating a new key for the user.<\/p>\n<p><a class=\"fancybox\" id=\"img-16\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/16.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-15.png\" alt=\"Create a new key\" width=\"500\" height=\"245\" title=\"\"><\/a><\/p>\n<p>Click &#8216;Next&#8217; button.<\/p>\n<p>Setup the &#8216;Passphrase&#8217;, type your strong passphrase.<\/p>\n<p><a class=\"fancybox\" id=\"img-17\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/17.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-16.png\" alt=\"Set a password\" width=\"500\" height=\"251\" title=\"\"><\/a><\/p>\n<p>Click &#8216;Next&#8217; button. Backup your key by pressing the &#8216;Download&#8217; button and click &#8216;Next&#8217; again.<\/p>\n<p><a class=\"fancybox\" id=\"img-18\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/18.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-17.png\" alt=\"Download backup key\" width=\"500\" height=\"240\" title=\"\"><\/a><\/p>\n<p>For the security token, leave it default and click &#8216;Next&#8217;.<\/p>\n<p><a class=\"fancybox\" id=\"img-19\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/19.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-18.png\" alt=\"Set security token\" width=\"500\" height=\"241\" title=\"\"><\/a><\/p>\n<p>And you will be redirected to the Passbolt login page.<\/p>\n<p><a class=\"fancybox\" id=\"img-20\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/20.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-19.png\" alt=\"Passbolt login page\" width=\"500\" height=\"268\" title=\"\"><\/a><\/p>\n<p>Type your &#8216;Passphrase&#8217; and click &#8216;Login&#8217;. And you will see the Passbolt user Dashboard as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-21\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_passbolt_self_hosted_password_manager_on_centos_7\/big\/21.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-20.png\" alt=\"Welcome to Passbolt\" width=\"500\" height=\"287\" title=\"\"><\/a><\/p>\n<p>Passbolt open source password manager installation on CentOS 7 has been completed successfully.<\/p>\n<h2 id=\"step-additional-security-server-setup\">Step 9 &#8211; Additional Security Server Setup<\/h2>\n<h3><strong>&#8211; Setup the Firewalld<\/strong><\/h3>\n<p>Open new HTTP, HTTPS, and SMTP ports on the server.<\/p>\n<p class=\"command\">sudo firewall-cmd &#8211;add-service=http &#8211;permanent<br \/>sudo firewall-cmd &#8211;add-service=https &#8211;permanent<br \/>sudo firewall-cmd &#8211;add-service=smtp &#8211;permanent<\/p>\n<p>Now reload the firewalld configuration.<\/p>\n<p class=\"command\">sudo firewall-cmd &#8211;reload<\/p>\n<h3 id=\"-setup-selinux-permission\">&#8211; Setup Selinux Permission<\/h3>\n<p>Permission for the &#8216;Passbolt&#8217; webroot directory.<\/p>\n<p class=\"command\">sudo semanage fcontext -a -t httpd_sys_content_t &#8216;\/var\/www(\/.*)?&#8217;<br \/>sudo semanage fcontext -a -t httpd_sys_rw_content_t &#8216;\/var\/www\/passbolt\/tmp(\/.*)?&#8217;<br \/>sudo semanage fcontext -a -t httpd_sys_rw_content_t &#8216;\/var\/www\/passbolt\/logs(\/.*)?&#8217;<br \/>sudo restorecon -Rv \/var\/www<\/p>\n<p>Permission for the Nginx gnupg keyring directory.<\/p>\n<p class=\"command\">sudo semanage fcontext -a -t httpd_sys_rw_content_t &#8216;\/var\/lib\/nginx\/.gnupg(\/.*)?&#8217;<br \/>sudo restorecon -Rv \/var\/lib\/nginx\/.gnupg<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div class=\"authorbox\" readability=\"15\">\n<p><strong>About Muhammad Arul<\/strong><\/p>\n<p>Muhammad Arul is a freelance system administrator and technical writer. He is working with Linux Environments for more than 5 years, an Open Source enthusiast and highly motivated on Linux installation and troubleshooting. Mostly working with RedHat\/CentOS Linux and Ubuntu\/Debian, Nginx and Apache web server, Proxmox, Zimbra Administration, and Website Optimization. Currently learning about OpenStack and Container Technology.<\/p>\n<\/div>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-passbolt-password-manager-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-21.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-passbolt-password-manager-installation%2F&amp;text=How+to+Install+Passbolt+Self-Hosted+Password+Manager+on+CentOS+7&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-22.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-23.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-passbolt-password-manager-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-passbolt-self-hosted-password-manager-on-centos-7-24.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Passbolt is a free and open source password manager for teams. It allows team members to store and share credentials\/password securely. Passbolt is created with PHP and can be run under the LEMP stack or run as docker container. In this tutorial, we will show you step-by-step install and configure open source password manager &#8216;Passbolt&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-7200","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=7200"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7200\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=7200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=7200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=7200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}