openxpki搭建

20阅读 0评论2017-11-28 sometimeixpub
分类:LINUX

openxpki是一个用于管理SSL证书的申请、签发流程的平台,主要开发语言是Perl。


境准备

ubuntu-14.04-server

添加openxpki官方软件源:

echo "deb http://packages.openxpki.org/ubuntu/ dists/trusty/release/binary-amd64/" > /etc/apt/sources.list.d/openxpki.list

apt-get update

安装软件包

apt-get install mysql-server libdbd-mysql-perl apache2 libapache2-mod-fcgid openjdk-7-jre

a2enmod fcgid

apt-get install libopenxpki-perl openxpki-i18n

配置数据库

使用mysql连接到本地的mysql服务,创建数据库并赋予权限:

# mysql -u root -p

> CREATE DATABASE openxpki CHARSET utf8;

> CREATE USER 'openxpki'@'localhost' IDENTIFIED BY 'openxpki';

> GRANT ALL ON openxpki.* TO 'openxpki'@'localhost';

> flush privileges;

> exit

# zcat /usr/share/doc/libopenxpki-perl/examples/schema-mysql.sql.gz | mysql -u root -p openxpki

然后修改/etc/openxpki/config.d/system/database.yaml:

main:

   debug: 0

   type: MySQL

   name: openxpki

   host: localhost

   port: 3306

   user: openxpki

   passwd: openxpki

上一篇:进程的处理器亲和性和vCPU的绑定
下一篇:没有了