Skip to content

HolyMacarony/nfc-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nfc-backend

Washing Machine backend

Adding Datasource via JBOSS-cli

EXAMPLE DATASOURCE: connect module add --name=com.mysql --resources=mysql-connector-java-8.0.18.jar --dependencies=javax.api,javax.transaction.api /subsystem=datasources/jdbc-driver=mysql:add(driver-name=mysql,driver-module-name=com.mysql) data-source add --jndi-name=java:/WashingDS --name=MySQLPool --connection-url=jdbc:mysql://localhost:3306/washing --driver-name=mysql --user-name=washing --password=*** /subsystem=datasources/data-source=MySQLPool:test-connection-in-pool

EXAMPLE KEYSTORE PS C:\Program Files\Java\jre1.8.0_241\bin> .\keytool.exe -genkey -keyalg RSA -keystore server.keystore -storepass secret -keypass secret -storetype pkcs12 -validity 365 -dname "cn=Server Administrator,o=Acme,c=GB"

EXAMPLE SSL CERT on server: root:/etc/letsencrypt/live/washing.taking.pictures# openssl pkcs12 -export -inkey privkey.pem -in fullchain.pem -name washing.taking.pictures -out washing.p12

on client: C:\Program Files\Java\jdk1.8.0_241\bin> .\keytool.exe -importkeystore -srckeystore washing.p12 -srcstoretype pkcs12 -destkeystore washing.jks

AS config jBoss CLI: /subsystem=elytron/key-store=LocalhostKeyStore:add(path=server.keystore,relative-to=jboss.server.config.dir,credential-reference={clear-text="secret"},type=JKS) /subsystem=elytron/key-manager=LocalhostKeyManager:add(key-store=LocalhostKeyStore,alias-filter=server,credential-reference={clear-text="secret"}) /subsystem=elytron/server-ssl-context=LocalhostSslContext:add(key-manager=LocalhostKeyManager) /subsystem=undertow/server=default-server/https-listener=https:undefine-attribute(name=security-realm) /subsystem=undertow/server=default-server/https-listener=https:write-attribute(name=ssl-context,value=LocalhostSslContext)

About

Washing Machine backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published