English
Русский
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.
<!-- Default -->
<peculiar-fortify-certificates />
<!-- Without footer -->
<peculiar-fortify-certificates hide-footer />
<!-- Change language -->
<peculiar-fortify-certificates language="ru" />
// 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);
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; qualifiedCertificateStatements?: string[]; ca?: boolean; } |
{} |
hideFooter |
hide-footer |
If true , the component footer will be hidden. |
boolean | undefined |
language |
language |
Component language. | "de" | "el" | "en" | "es" | "fr" | "he" | "it" | "nl" | "pl" | "pt" | "ru" | "tr" |
undefined |
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; }> |