Skip to content

Commit 5fec886

Browse files
committed
correcting altNames
1 parent 6933933 commit 5fec886

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const result = await generateCertificateFiles({
193193
| Option | Type | Default | Description |
194194
|--------|------|---------|-------------|
195195
| `commonName` | string | `'localhost'` | Certificate subject Common Name (CN) |
196-
| `altNames` | Array | localhost, 127.0.0.1, ::1 | Subject Alternative Names (`{ type: 'dns' \| 'ip', value: string }`) |
196+
| `altNames` | Array\<{ type, value }\> | `[dns:localhost, ip:127.0.0.1, ip:::1]` | Subject Alternative Names with type `'dns'` or `'ip'` |
197197
| `validityDays` | number | `365` | Certificate validity period in days |
198198
| `keySize` | number | `2048` | RSA key size in bits |
199199

0 commit comments

Comments
 (0)