Kindly note that, I have tested the script mentioned in the link https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#connect_programmatically-tls_enabled for the sample shell script that imports the certificate bundle into a trust store on macOS and I was able to do so successfully.
The error mentioned in your post is generally observed when the file is not present in the mentioned path or the path is not correct. Please follow below mentioned steps for your reference.
Go to /tmp folder in you Mac system : cd /tmp
Create a directory name certs if not present : mkdir certs
Go back to the working directory i.e. in which you intend to store the scripts and,
a. Create a shell script with any preferred name(e.g. testsh.sh) and copy the complete script mentioned in link : https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#connect_programmatically-tls_enabled.
b. Provide the <truststorePassword> for the same and save the script
Now execute the script : ./testsh.sh
Following the above mentioned steps, you should be able to create a trust store named rds-truststore.jks under the folder /tmp/certs for your use case.
AL2 - predeploy script and environment variablesasked 2 years ago
AWS Workdocs drive crashes on Mac M1asked 9 months ago
Mac M1 instance still not stopped after 1 hourasked 2 months ago
AWS DMS - Endpoint target Redshift with user provided S3 bucket nameasked 4 months ago
User Data script not downloading file(s) from S3asked 2 months ago
[amazon-pa-api50] Using in Google App Scriptasked 2 months ago
Can someone help me with jump in Canvas Script?asked 3 years ago
Not able to create truststorePassword with amazon provided scriptasked 3 months ago
User is not able to see data in the QuickSight table/visual even after getting the accessasked 2 months ago
Init script no longer runningasked 2 years ago