8000 change names to match issuance policy · flasheryu/java-docs-samples@bd99ca3 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd99ca3

Browse files
committed
change names to match issuance policy
1 parent 77a96dc commit bd99ca3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

privateca/snippets/src/main/java/privateca/CreateCertificate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ public static void createCertificate(
8383
// orgName: Provide the name of your company.
8484
// domainName: List the fully qualified domain name.
8585
// certificateLifetime: The validity of the certificate in seconds.
86-
String commonName = "common-name";
87-
String orgName = "org-name";
88-
String domainName = "dns.your-domain.com";
86+
String commonName = "commonname";
87+
String orgName = "orgname";
88+
String domainName = "dns.example.com";
8989
long certificateLifetime = 1000L;
9090

9191
// Set the Public Key and its format.

privateca/snippets/src/main/java/privateca/CreateSubordinateCa.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public static void createSubordinateCertificateAuthority(
6464
try (CertificateAuthorityServiceClient certificateAuthorityServiceClient =
6565
CertificateAuthorityServiceClient.create()) {
6666

67-
String commonName = "common-name";
68-
String orgName = "csr-org-name";
69-
String domainName = "dns.your-domain.com";
67+
String commonName = "commonname";
68+
String orgName = "csrorgname";
69+
String domainName = "dns.example.com";
7070
int caDuration = 100000; // Validity of this CA in seconds.
7171

7272
// Set the type of Algorithm.

0 commit comments

Comments
 (0)
0