File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
privateca/snippets/src/main/java/privateca Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ public static void createCertificate(
83
83
// orgName: Provide the name of your company.
84
84
// domainName: List the fully qualified domain name.
85
85
// 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" ;
89
89
long certificateLifetime = 1000L ;
90
90
91
91
// Set the Public Key and its format.
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ public static void createSubordinateCertificateAuthority(
64
64
try (CertificateAuthorityServiceClient certificateAuthorityServiceClient =
65
65
CertificateAuthorityServiceClient .create ()) {
66
66
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" ;
70
70
int caDuration = 100000 ; // Validity of this CA in seconds.
71
71
72
72
// Set the type of Algorithm.
You can’t perform that action at this time.
0 commit comments