docker run --rm --name mysql8 --network minha-rede -v $(pwd)/mysql-datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql:8
gerar par de chave publica e privada
keytool -genkeypair -alias food-api -keyalg RSA -keypass 123456 -keystore food-api.jks -storepass 123456789
listar chave
keytool -list -keystore food-api.jks
Extraindo a chave pública no formato PEM extrair com keytool:
keytool -export -rfc -alias food-api -keystore food-api.jks -file food-api-cert.pem
openssl x509 -pubkey -noout -in food-api-cert.pem > food-api-public-key.pem
Converter jks em base64
cat food-prd.jks | base64 | pbcopy
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Boot DevTools
The following guides illustrate how to use some features concretely: