Skip to content

Commit 9e042f3

Browse files
committed
Enhance SSL configuration documentation and remove outdated troubleshooting guide
1 parent 742b148 commit 9e042f3

File tree

3 files changed

+507
-771
lines changed

3 files changed

+507
-771
lines changed

docs/01-getting-started/configuration.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ hana-cli schemaClone -s SOURCE -t TARGET --admin
108108
"user": "DBUSER",
109109
"password": "password",
110110
"encrypt": true,
111-
"sslCertificate": "/path/to/cert.pem"
111+
"sslTrustStore": "/path/to/truststore.pem",
112+
"sslValidateCertificate": true
112113
}
113114
}]
114115
}
@@ -261,12 +262,28 @@ export HANA_PASSWORD=test_password
261262

262263
### SSL Certificate Issues
263264

265+
SSL validation is disabled by default in hana-cli. To enable it with a trusted certificate:
266+
264267
```bash
265-
# Allow self-signed certificates (not recommended for production)
266-
export HANA_SSL_VERIFY=false
268+
# Connect with a trust store
269+
hana-cli connect -n host:port -u USER -p PASSWORD --trustStore /path/to/cert.pem
270+
```
267271

268-
# Or use certificate file
269-
export HANA_SSL_CERT=/path/to/cert.pem
272+
Or configure in `default-env.json`:
273+
274+
```json
275+
{
276+
"VCAP_SERVICES": {
277+
"hana": [{
278+
"credentials": {
279+
"host": "hana.example.com",
280+
"port": 30015,
281+
"sslTrustStore": "/path/to/cert.pem",
282+
"sslValidateCertificate": true
283+
}
284+
}]
285+
}
286+
}
270287
```
271288

272289
### Proxy Issues

0 commit comments

Comments
 (0)