Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:czechidm_installation_win [2020/10/01 14:45] urbanl old revision restored (2020/09/08 12:11) |
tutorial:adm:czechidm_installation_win [2021/08/25 08:10] husniko |
||
---|---|---|---|
Line 22: | Line 22: | ||
Use the pgAdmin or PSQL to test the database connection under the '' | Use the pgAdmin or PSQL to test the database connection under the '' | ||
==== JDBC driver installation ==== | ==== JDBC driver installation ==== | ||
- | Download the PostgreSQL JDBC driver from the [[https:// | + | Download the newest |
==== Configure environment properties. Select application profile ==== | ==== Configure environment properties. Select application profile ==== | ||
Run the **Monitor Tomcat** application from the Start menu. Configure following settings: | Run the **Monitor Tomcat** application from the Start menu. Configure following settings: | ||
- | * Add '' | + | * Add '' |
* Add '' | * Add '' | ||
- | + | * Add '' | |
- | === Change Tomat logging properties === | + | |
- | + | ||
- | In order to set-up log rotation we need stop logging to stdout and start logging to catalina.log . | + | |
- | + | ||
- | Make these changes in file '' | + | |
- | Comment out console handler. We don't want tomcat to log to stdout or stderr. | + | |
- | < | + | |
- | handlers = 1catalina.org.apache.juli.AsyncFileHandler, | + | |
- | #handlers = java.util.logging.ConsoleHandler | + | |
- | + | ||
- | .handlers = 1catalina.org.apache.juli.AsyncFileHandler | + | |
- | #.handlers = java.util.logging.ConsoleHandler, | + | |
- | + | ||
- | # | + | |
- | # | + | |
- | </ | + | |
- | In 1catalina file handler change log level to " | + | |
- | < | + | |
- | # | + | |
- | # | + | |
- | 1catalina.org.apache.juli.AsyncFileHandler.level = INFO | + | |
- | 1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/ | + | |
- | 1catalina.org.apache.juli.AsyncFileHandler.prefix = tomcat | + | |
- | 1catalina.org.apache.juli.AsyncFileHandler.rotatable = false | + | |
- | 1catalina.org.apache.juli.AsyncFileHandler.suffix = .log | + | |
- | </ | + | |
==== Create CzechIdM configuration folders ==== | ==== Create CzechIdM configuration folders ==== | ||
Line 77: | Line 50: | ||
openssl genrsa -out fakecert.key | openssl genrsa -out fakecert.key | ||
# if the following command fails, remove the parameter -subj and supply the values interactively | # if the following command fails, remove the parameter -subj and supply the values interactively | ||
- | openssl req -new -key fakecert.key -out fakecert.csr -subj "/C=CZ/ST=Czech Republic/L=Prague/O=BCV/CN=CzechIdM placeholder cert" | + | openssl req -new -key fakecert.key -out fakecert.csr -subj "//C=CZ\ST=Czech Republic\L=Prague\O=BCV\CN=CzechIdM placeholder cert" |
openssl x509 -req -in fakecert.csr -signkey fakecert.key -days 1 -sha256 -out fakecert.crt | openssl x509 -req -in fakecert.csr -signkey fakecert.key -days 1 -sha256 -out fakecert.crt | ||
keytool -importcert -file fakecert.crt -alias placeholder-cert -keystore truststore.jks | keytool -importcert -file fakecert.crt -alias placeholder-cert -keystore truststore.jks | ||
Line 122: | Line 95: | ||
org.quartz.jobStore.tablePrefix=qrtz_ | org.quartz.jobStore.tablePrefix=qrtz_ | ||
</ | </ | ||
- | * The **C: | + | * The **C: |
+ | |||
+ | <code xml logback-spring.xml> | ||
<?xml version=" | <?xml version=" | ||
<!-- https:// | <!-- https:// | ||
<!-- http:// | <!-- http:// | ||
< | < | ||
+ | <!-- !!!BEWARE!!! The specification of the LOG PATTERNS overrides the default configuration and increases the maximum length of the %logger{< | ||
+ | It is neccessary for correct function of the AUDIT logging feature (redmine ticket #2717). If AUDIT logger key is longer then the set limit it gets shortened | ||
+ | and SIEM software is not able to parse logs properly. --> | ||
+ | < | ||
+ | < | ||
+ | | ||
< | < | ||
<include resource=" | <include resource=" | ||
<include resource=" | <include resource=" | ||
< | < | ||
- | | + | |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | | ||
+ | < | ||
+ | </ | ||
+ | | ||
<logger name=" | <logger name=" | ||
<logger name=" | <logger name=" | ||
<logger name=" | <logger name=" | ||
<logger name=" | <logger name=" | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | <root level=" | + | |
- | < | + | |
- | </ | + | |
</ | </ | ||
</ | </ |