English

Русский

peculiar-fortify-certificates

The web-component provides an easier way to connect a web-page to the Fortify App, show certificates from available OS crypto providers, and choose a certificate for signing.

Usage

Basic

<!-- Default -->
<peculiar-fortify-certificates />

<!-- Without footer -->
<peculiar-fortify-certificates hide-footer />

<!-- Change language -->
<peculiar-fortify-certificates language="ru" />
Copied
// Filters
var el = document.createElement('peculiar-fortify-certificates');
el.filters = {
  expired: false,
  onlySmartcards: false,
  onlyWithPrivateKey: false,
  keyUsage: ['digitalSignature'],
  subjectDNMatch: 'test',
  issuerDNMatch: 'test',
  providerNameMatch: 'crypto',
  certificateIdMatch: 'test',
};

document.body.appendChild(el);
Copied

Properties

Property Attribute Description Type Default
downloadAppLink download-app-link Link for download application when a connection to Fortify not found. string undefined
filters -- Filters for certificates. KeyUsageType you can find on certificate specification . { expired?: boolean; onlySmartcards?: boolean; onlyWithPrivateKey?: boolean; keyUsage?: KeyUsageType[]; subjectDNMatch?: string | RegExp; issuerDNMatch?: string | RegExp; providerNameMatch?: string | RegExp; onlyQualified?: boolean; certificateIdMatch?: string | RegExp; } {}
hideFooter hide-footer If true, the component footer will be hidden. boolean undefined
language language Component language. "de" | "el" | "en" | "he" | "it" | "pl" | "ru" undefined

Events

Event Description Type
cancel Emitted when the user cancel flow. CustomEvent<void>
continue Emitted when the user continue flow. CustomEvent<{ certificateId: string; providerId: string; server: SocketProvider; privateKeyId: string; }>