chore: review comments

This commit is contained in:
William Yang 2023-05-05 09:23:56 +02:00
parent c3430b8883
commit 30cccab387
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ gen_ca(Path, Name) ->
"-newkey ec:~s " "-newkey ec:~s "
"-keyout ~s -out ~s -days 3650 " "-keyout ~s -out ~s -days 3650 "
"-addext basicConstraints=CA:TRUE " "-addext basicConstraints=CA:TRUE "
"-subj \"/C=SE/O=Internet Widgits Pty Ltd CA\"", "-subj \"/C=SE/O=TEST CA\"",
[ [
ECKeyFile, ECKeyFile,
ca_key_name(Path, Name), ca_key_name(Path, Name),
@ -130,7 +130,7 @@ csr_cmd(PasswordArg, ECKeyFile, HKey, HCSR, CN) ->
"-addext \"subjectAltName=DNS:~s\" " "-addext \"subjectAltName=DNS:~s\" "
"-addext basicConstraints=CA:TRUE " "-addext basicConstraints=CA:TRUE "
"-addext keyUsage=digitalSignature,keyAgreement,keyCertSign " "-addext keyUsage=digitalSignature,keyAgreement,keyCertSign "
"-subj \"/C=SE/O=Internet Widgits Pty Ltd/CN=~s\"", "-subj \"/C=SE/O=TEST/CN=~s\"",
[PasswordArg, ECKeyFile, HKey, HCSR, CN, CN] [PasswordArg, ECKeyFile, HKey, HCSR, CN, CN]
) )
). ).