Skip to content

Commit 5630b97

Browse files
Removed password in curl and added an example with --cacert
1 parent cdfeb02 commit 5630b97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Managing Documents/importing-data-with-curl.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ cd C:\Users\[your_username]\Desktop
1818
## Importing data into local cluster
1919

2020
```
21-
curl --insecure -u elastic:[elasticsearch_password] -H "Content-Type:application/x-ndjson" -XPOST https://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
21+
curl --cacert [path_to_CA_certificate] -u elastic -H "Content-Type:application/x-ndjson" -XPOST https://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
22+
23+
# Skipping the verification of the certificate (only for local development)
24+
curl --insecure -u elastic -H "Content-Type:application/x-ndjson" -XPOST https://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
2225
```
2326

2427
## Importing data into Elastic Cloud

0 commit comments

Comments
 (0)