Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions javav2/example_code/acm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
<groupId>software.amazon.awssdk</groupId>
<artifactId>netty-nio-client</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>acmpca</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>secretsmanager</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public static void main(String[] args) {
privateKeyKey - The object key for the private key file in S3.
""";

//if (args.length != 3) {
// System.out.println(usage);
// return;
// }
if (args.length != 3) {
System.out.println(usage);
return;
}

String bucketName = "certbucket100" ; //args[0];
String certificateKey = "certificate.pem" ; // args[1];
String privateKeyKey = "private_key.pem" ; //args[2];
String bucketName = args[0];
String certificateKey = args[1];
String privateKeyKey = args[2];

String certificateArn = importCertificate(bucketName, certificateKey, privateKeyKey);
System.out.println("Certificate imported with ARN: " + certificateArn);
Expand Down
Loading