我想从AWS java lambda连接到AWS Document DB集群。为群集启用了TLS,因此我需要将证书导入到truststore。找不到有关如何进行此操作的任何文档。
无法从AWS Java Lambda连接到AWS DocumentDB
评论
请
登录后发表观点
-
You need to store
https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
file to certstore before connecting to documentDB otherwise it will not work.它们是在运行时使用代码导入证书的多种方法。
Ref : How to import a .cer certificate into a java keystore?
导入证书后,您可以连接到documentDB,参考代码可以在这里找到:-
https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html