https://github.com/shubhamv108/spring-boot-azure-cosmos-db
https://github.com/shubhamv108/spring-boot-azure-cosmos-db
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shubhamv108/spring-boot-azure-cosmos-db
- Owner: shubhamv108
- Created: 2025-03-16T21:58:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T22:03:42.000Z (7 months ago)
- Last Synced: 2025-03-16T23:24:07.182Z (7 months ago)
- Language: Java
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
1. Start cosmos db
```docker compose up -d```2. Fetch certificate
```curl -k https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt```3. Add certificate to keystore
```cd $JAVA_HOME/lib/security```
```keytool -importcert -alias cacerts -keystore cacerts -file ~/emulatorcert.crt```4. Add VM Options
```
-Djavax.net.ssl.trustStore=/usr/lib/jvm/jdk-21-oracle-x64/lib/security/cacerts
-Djavax.net.ssl.trustStoreType=JKS
```