Activar archivos de Configuracion

Activar Archivos de configuración

#Entrar al directorio

cd /opt/pki/ejbca/conf

##Configurar el Server

#copiar

cp ejbca.properties.sample ejbca.properties

#Editar el archivo

nano ejbca.properties

#Agregar

appserver.home=/opt/pki/wildfly

Guardar el archivo

## Configurar base de datos

#Copiar

 cp database.properties.sample database.properties

#Editar database,properties

nano database.properties

#Agregar

datasource.jndi-name=EjbcaDS
database.name=mysql
database.url=jdbc:mysql://127.0.0.1:3306/ejbca?characterEncoding=UTF-8
database.driver=com.mysql.jdbc.Driver

database.username=ejbca
database.password=lemotdepasse

##Archivo install.properties

#Copiar

cp install.properties.sample install.properties

#Editar

nano install.properties

#Contenido

# This installation will create a first administrative CA
ca.name=ManagementCA
ca.dn=CN=InstallManagementCA,O=Libriciel,C=FR
# The token type the administrative CA will use.
ca.tokentype=soft
# Password for the administrative CA token.
ca.tokenpassword=null
# The keyspec for the administrative CAs key
ca.keyspec=4096
# The keytype for the administrative CA
ca.keytype=RSA
# Default signing algorithm for the administrative CA.
ca.signaturealgorithm=SHA256WithRSA
# The validity in days for the installation's administrative CA, only digits.
ca.validity=60
# The policy id of the administrative CA
ca.policy=null

##Archivo web.properties

#Copiar archivo

cp web.properties.sample web.properties

#Editar el archivo

# Password for java trust keystore
java.trustpassword=EncoreUnMotdepasse
# The CN and DN of the super administrator.
superadmin.cn=TempSuperAdmin
superadmin.dn=CN=${superadmin.cn}
# Password for the temporary super-administrator's p12 keystore.
superadmin.password=mot2passe4firefox
superadmin.batch=true

# The password used to protect the web servers SSL keystore
httpsserver.password=serverpwd
# Hostname which will be used for accessing the CA
httpsserver.hostname=ejbca.toto.net
# The Distinguished Name of the SSL server certificate
httpsserver.dn=CN=${httpsserver.hostname},O=Libriciel,C=FR

# Specify external port visible to users of EJBCA.
httpserver.external.privhttps=443
# Specify desired language for the web frontend.
web.availablelanguages=fr,en

##Configurar SMTP:

#Copiar

cp mail.properties.sample mail.properties

#Editar

mail.smtp.host=localhost
mail.smtp.port=25
mail.smtp.auth=false
mail.from=pki-donotreply@libriciel.fr
mail.contentencoding=UTF-8

Last updated