mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-28 16:19:48 +03:00
Merge branch 'chore/all-my-stuffs' of https://github.com/sharevb/it-tools into chore/all-my-stuffs
This commit is contained in:
commit
50b9e726a2
1 file changed
+16
-10
@@ -1,4 +1,5 @@
|
|||||||
import type {
|
import type {
|
||||||
|
AlgorithmHashType,
|
||||||
Certificate,
|
Certificate,
|
||||||
Fingerprint,
|
Fingerprint,
|
||||||
Key,
|
Key,
|
||||||
@@ -170,16 +171,21 @@ export function getCertificateLabelValues(cert: Certificate) {
|
|||||||
})), null, 2),
|
})), null, 2),
|
||||||
multiline: true,
|
multiline: true,
|
||||||
},
|
},
|
||||||
{
|
...['sha1', 'sha256', 'sha512'].flatMap(algorithm =>
|
||||||
label: 'Fingerprint (sha256):',
|
[
|
||||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha256')),
|
|
||||||
multiline: true,
|
{
|
||||||
},
|
label: `Fingerprint (${algorithm}):`,
|
||||||
{
|
value: onErrorReturnErrorMessage(() => cert.fingerprint(algorithm as AlgorithmHashType)),
|
||||||
label: 'Fingerprint (sha512):',
|
multiline: true,
|
||||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha512')),
|
},
|
||||||
multiline: true,
|
{
|
||||||
},
|
label: `Fingerprint HEX (${algorithm}):`,
|
||||||
|
value: onErrorReturnErrorMessage(() => cert.fingerprint(algorithm as AlgorithmHashType).toString('hex')),
|
||||||
|
multiline: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
),
|
||||||
{
|
{
|
||||||
label: 'Certificate (pem):',
|
label: 'Certificate (pem):',
|
||||||
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
|
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
|
||||||
|
|||||||
Reference in new issue
Block a user