https://github.com/ndiing/cert
Utilitas untuk menghasilkan sertifikat Certificate Authority (CA) dan sertifikat untuk hostname tertentu dalam format PEM.
https://github.com/ndiing/cert
ca certificate pem security ssl
Last synced: 12 months ago
JSON representation
Utilitas untuk menghasilkan sertifikat Certificate Authority (CA) dan sertifikat untuk hostname tertentu dalam format PEM.
- Host: GitHub
- URL: https://github.com/ndiing/cert
- Owner: ndiing
- License: mit
- Created: 2024-10-06T03:30:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-18T10:37:25.000Z (over 1 year ago)
- Last Synced: 2025-01-29T12:47:23.413Z (about 1 year ago)
- Topics: ca, certificate, pem, security, ssl
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@ndiinginc/cert
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## cert
* [cert](#module_cert)
* [.defaultAttrs](#module_cert.defaultAttrs) : Array.<Object>
* [.getExtensionSAN(domain)](#module_cert.getExtensionSAN) ⇒ Object
* [.getKeysAndCert([serialNumber])](#module_cert.getKeysAndCert) ⇒ Object
* [.generateRootCA([commonName])](#module_cert.generateRootCA) ⇒ Object
* [.generateCertsForHostname(domain, rootCAConfig)](#module_cert.generateCertsForHostname) ⇒ Object
* [.setDefaultAttrs(attrs)](#module_cert.setDefaultAttrs)
* [.getCertsForHostname(domain)](#module_cert.getCertsForHostname) ⇒ Object
### cert.defaultAttrs : Array.<Object>
Atribut default yang digunakan untuk sertifikat.
**Kind**: static property of [cert](#module_cert)
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| name | string | Nama atribut. |
| value | string | Nilai atribut. |
| [shortName] | string | Nama pendek atribut (opsional). |
### cert.getExtensionSAN(domain) ⇒ Object
Mengambil ekstensi Subject Alternative Name (SAN) berdasarkan domain.
**Kind**: static method of [cert](#module_cert)
**Returns**: Object - - Objek yang berisi nama dan alternatif nama.
| Param | Type | Description |
| --- | --- | --- |
| domain | string | Domain yang akan digunakan. |
### cert.getKeysAndCert([serialNumber]) ⇒ Object
Menghasilkan pasangan kunci dan sertifikat.
**Kind**: static method of [cert](#module_cert)
**Returns**: Object - - Objek yang berisi kunci dan sertifikat.
| Param | Type | Description |
| --- | --- | --- |
| [serialNumber] | string | Nomor seri untuk sertifikat. |
### cert.generateRootCA([commonName]) ⇒ Object
Menghasilkan Root Certificate Authority (CA).
**Kind**: static method of [cert](#module_cert)
**Returns**: Object - - Objek yang berisi kunci privat, kunci publik, dan sertifikat.
| Param | Type | Description |
| --- | --- | --- |
| [commonName] | string | Nama umum untuk sertifikat. |
### cert.generateCertsForHostname(domain, rootCAConfig) ⇒ Object
Menghasilkan sertifikat untuk hostname tertentu.
**Kind**: static method of [cert](#module_cert)
**Returns**: Object - - Objek yang berisi kunci privat, kunci publik, dan sertifikat.
| Param | Type | Description |
| --- | --- | --- |
| domain | string | Nama domain untuk sertifikat. |
| rootCAConfig | Object | Konfigurasi Root CA. |
### cert.setDefaultAttrs(attrs)
Mengatur atribut default.
**Kind**: static method of [cert](#module_cert)
| Param | Type | Description |
| --- | --- | --- |
| attrs | Array.<Object> | Array atribut yang ingin disetel sebagai default. |
### cert.getCertsForHostname(domain) ⇒ Object
Mengambil sertifikat untuk hostname tertentu.
**Kind**: static method of [cert](#module_cert)
**Returns**: Object - - Objek yang berisi kunci privat dan sertifikat.
| Param | Type | Description |
| --- | --- | --- |
| domain | string | Nama domain untuk sertifikat. |