5.9.67 • Published 11 months ago

@hishprorg/praesentium-ducimus v5.9.67

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm version npm downloads license dependencies quality-all quality popularity

Description

@hishprorg/praesentium-ducimus is a node.js library for common ssl-certificates tasks such as fetch, parse and validation.

Features

  • zero third-party dependencies
  • async/await support
  • optional use of node's crypto module
  • asn1 viewer

Installation

npm install --save @hishprorg/praesentium-ducimus

Usage

node.js:

'use strict';
 
const sslCertificates = require('@hishprorg/praesentium-ducimus')
 
sslCertificates.get('nodejs.org').then(function (certificate) {
  console.log(certificate.issuer)
  // { 
  //   C: 'GB',
  //   ST: 'Greater Manchester',
  //   L: 'Salford',
  //   ....
  // }
});

API Documentation

get

fetch the ssl-certificate from a host, url or local file

const { get } = require('@hishprorg/praesentium-ducimus');

await get(from, options);

args

optiondescriptiontypedefault
includeChainincludes chain's certificatesbooleanfalse
includeCertificatesincludes the raw certificates string in the response objectbooleanfalse
useCryptoModuleuse node's crypto module or custom parserbooleantrue
portport to connect toint443
verboseprint verbosebooleanfalse

validate

tests the validity of a ssl-certificate, the aspects tested are

  • Is date valid?
  • Is the domain valid?
  • Is the chain of trust valid?
  • Is the root CA self signed?
  • Was the certificate revoked by it's issuer
  • Are the cryptographic details valid
  • Is the root CA valid?
const { validate } = require('@hishprorg/praesentium-ducimus');

await validate(from, options);

args

optiondescriptiontypedefault
domaindomain name to validatestringnull
includeChainincludes chain's certificatesbooleanfalse
useCryptoModuleuse node's crypto module or custom parserbooleantrue
portport to connect toint443
verboseprint verbosebooleanfalse

signedBy

validates a ssl-certificate being signed by some other certificate

const { signedBy } = require('@hishprorg/praesentium-ducimus');

await signedBy(from, signer, options);

args

optiondescriptiontypedefault
useCryptoModuleuse node's crypto module or custom parserbooleantrue
verboseprint verbosebooleanfalse

print

print the asn1 tree structure

const { print } = require('@hishprorg/praesentium-ducimus');

await printCertificate(from, options);

args

optiondescriptiontypedefault
useCryptoModuleuse node's crypto module or custom parserbooleantrue
verboseprint verbosebooleanfalse

return

  • string: with the asn tree structure

Reference packages

thanks

License

The module is available as open source under the terms of the MIT License.

getPrototypeOfserializecurlnodePushArray.prototype.findLastserializationArray.prototype.flattermES2018routingmodulestrimLeftpnpm9ReactiveXsetImmediateidentifiersrdskinesisES2019globalagentes5react-hooksprefixtc39SymbolobjlivehasOwnPropertylesscss-in-jsfantasy-landxtermbinBigInt64Arrayequalityset-0fullwidthstylingescapepropertydatenativebinarychromeUint8ClampedArraygetinvariant6to5mobilebusyfpsgetOwnPropertyDescriptorpropertiesespreeansicoretypeerrornegative zeroECMAScriptshebangreal-timewafirqroutemanagerstablecharactertsemitecmascriptcollectionlet$.extendquoteutil.inspectparseshamsameValueZerokeyfunction.lengthreact animationconfigsidewritabletoolkitwhichonceinspectcloneglacierentriessignedbyteOffsetlinuxes7binariesdatadependenciescloudformationlastcss lessi18ncolorscommanddatastructurefunctionalpatchObservablesyntaxerrorsimpledbgraphqlserializeridlereact posepasswordpreserve-symlinksECMAScript 2016querystringtypeofstreamsUnderscoreStreamurlec2joidescriptorcallbinds3viewfront-endlistenersresolveunicodevaryamlutilsmake dircommanderprototypeES2020AsyncIteratorexecvalidatetoStringTagvaluesStyleSheetweakmapspeeddeepcopyURLSearchParamsfindLastsigtermObject.isTypeScriptnamesa11yargvspinnerspringstyled-componentsapiwhatwgback-endaccessordefinePropertynpmignorefunctionscloudsearch.envoptionless mixinsnumberqueueMicrotaskfromtypedarraysposereact-testing-librarywgetpopmotioncomputed-typesproxyajaxworkspace:*classnameregular expressionCSSStyleDeclarationpushisfscurriedtypesslicebrowserslistvpcebsenvironmentstransportdeep-clonebindcolorloggerES2022cliECMAScript 3mrujsdiffargsloggingJSONfile systempreprocessorRFC-6455reusestatusUint32Arraypackage.jsoneslintconfigtoSortedpropspawngradients cssjson-schema-validatorexecutefast-deep-copy@@toStringTagoptimizerregexperformantSetjestimportuser-streamsfileendpointloadbalancingmockingtypedenderflatMapcolumnReflect.getPrototypeOfxhrenvgesturespositivejsfastifyenvironmentsymbolsshrinkwraphttptouchchanneleverysuperstructauthinstallerfixed-widthspeclintformssettingsmixinsreduce[[Prototype]]childimmutableES8koreanutilitiesArrayBuffer.prototype.slicelazyECMAScript 2023inputrulesvestscheme-validationglobalsObject.entries256electronsortapollofast-deep-clonevarspostcssjson-schemaObject.definePropertybundlerasciiartworkflowUint16Arrayhastestchinesewaitshimreplayfull-widthbundlingbddlogUint8ArrayforEachmomentvalueECMAScript 2022form-validationisConcatSpreadableYAMLlengthramdatranspilerserverdom-testing-libraryprogresscloudfrontsignalsworkerthreewritecompile lesssnsselfnametrimRightajvRegExp#flagsECMAScript 6internalsignalrequestfetchschemamatchAllcloudtrailArray.prototype.findLastIndextelephonezodECMAScript 7storagegatewaytoArraySystem.globalnopecopytranspilemkdirhookformpackage managerECMAScript 5RxJSless.jsconcatassertscore-jsqueueformatencryptioncacheoperating-systemString.prototype.trimeffect-tses2017es8sortedruntimeprotocol-buffersglobcolumnsInt32ArrayastasyncequalhandlersquerytestersigintIteratorwaapies2015variables in csscollection.es6certificatesin_.extendyuplockfileasterisksstreampipeprunecssECMAScript 2015mockbabelmoveforkminimallesscssdescriptiontoobjectbeanstalktostringtagRxregularreadablestreamdefinetacitamazonpluginjQueryespicomatchES5sequenceEStddoptimistbyteinferencepyyamlframeres-shimssessymlinknodejsbabel-corevisualdynamodbES3jwttypanionECMAScript 2017slotwindowparserreactelmimportexportclassesRegExp.prototype.flagsES2021fastmacossymlinksgetintrinsiccodesJSON-SchemahooksdataViewreducerstylepredictableECMAScript 2019diffTypedArrayStreamsCSSuploadfnmatcheventsECMAScript 2018chaioffsettypedarrayttyobjectes2016clientsafepostcss-pluginjsxauthenticationeventEmitterObject.getPrototypeOflinklocalglobal objectsharedgetterschemecolourregular-expressionrapidhardlinkstypescriptextradirES7json-schema-validationnested cssextenduninstalles6dotenves-shim APIflattenconststringifyES2015statelessWeakSetvariablescjksubprocessmetadatahandlerairbnbdragtyped arraypersistentmonorepoawesomesaucetoolsmatchmodulefilterpinorandommapemrdirectoryrgbcoerciblebcrypthas-ownbrowserl10njavascriptgetoptiteratorweaksetprotobufdataviewMicrosoftsymboltrimStartexitsharedarraybuffererror-handlingassignswfconsumecreateES2017utilitytraverseomitenumerablefunctioncss variableSymbol.toStringTagmakearraysreadablevalidationTypeBoxcallboundestreeflagsconsolefpexpressless cssdeterministiciterateharmonyexecfiletimeremovedayjsbootstrap cssless compilercensorECMAScript 2020configurablepolyfillsyntaxfastclonestringifierWebSocketFloat64Arrayprivate dataregexpmkdirscomparehashjsonschemapackagesprettyESnextObject.keyssqsclass-validatorexit-codepoint-freeopensslhelpersdropredirectObject.valuesclassnamesreduxloadingwindowsES2016flatjsdomInt16Arrayterminales2018jsonECMAScript 2021superagentes-abstractbounddeep-copyeast-asian-widthargumentconcatMaplibphonenumberbyteLengthprivatebuffersmapreducecryptoshellcircularnegativeredux-toolkitArrayBuffer#slicelrutextcommand-lineArray.prototype.includescall-bindsomeroute53bufferstaterobustieefficientMapES6groupByformdeepcloneObject.assigndomstylesObjectbootstrap lessformattingeslintowntslibwarningbannerintrinsicphoneeslintpluginlocationimmerelasticachelanguageObservablescrypttypesafeObject.fromEntriescss nestingchromiumArray.prototype.containsglobalThispureHyBiarraybuffervalidatorReactiveExtensionscallassertfast-clonerangeerrorArray.prototype.filterindicatorvaliddescriptorscallbackArraybrowserlisterrordeleteeslint-pluginWebSockets
5.9.67

11 months ago

5.9.66

11 months ago

5.9.65

11 months ago

5.9.64

11 months ago

5.9.63

11 months ago

5.9.62

11 months ago

5.9.61

11 months ago

5.9.60

11 months ago

5.9.59

11 months ago

4.9.59

11 months ago

4.9.58

11 months ago

4.9.57

11 months ago

4.9.56

11 months ago

4.9.55

11 months ago

4.9.54

11 months ago

4.9.53

11 months ago

4.9.52

11 months ago

4.9.51

11 months ago

4.9.50

12 months ago

4.8.50

12 months ago

4.8.49

12 months ago

4.8.48

12 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.7.46

12 months ago

4.7.45

12 months ago

4.7.44

12 months ago

4.7.43

12 months ago

4.7.42

12 months ago

4.7.41

12 months ago

4.7.40

12 months ago

4.7.39

12 months ago

4.7.38

12 months ago

4.7.37

12 months ago

4.7.36

12 months ago

4.7.35

12 months ago

4.6.35

12 months ago

4.6.34

12 months ago

4.6.33

1 year ago

4.6.32

1 year ago

4.6.31

1 year ago

4.5.31

1 year ago

4.5.30

1 year ago

4.4.30

1 year ago

4.4.29

1 year ago

4.4.28

1 year ago

4.4.27

1 year ago

4.4.26

1 year ago

4.4.25

1 year ago

4.4.24

1 year ago

4.4.23

1 year ago

4.4.22

1 year ago

4.4.21

1 year ago

4.4.20

1 year ago

4.4.19

1 year ago

4.4.18

1 year ago

4.3.18

1 year ago

4.2.18

1 year ago

4.2.17

1 year ago

4.2.16

1 year ago

4.2.15

1 year ago

4.2.14

1 year ago

4.2.13

1 year ago

3.2.13

1 year ago

3.2.12

1 year ago

3.2.11

1 year ago

3.2.10

1 year ago

3.2.9

1 year ago

3.2.8

1 year ago

3.2.7

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.1.5

1 year ago

2.0.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago