Pular para o conteúdo principal

Custom RestPKI configuration

On the article Get started, we saw that the init() code must be called before any other method is called:

pki.init(onWebPkiReady);

If you use a Rest PKI instance other than the standard one at https://pki.rest, you must set the URL of your Rest PKI instance in the init() call.

pki.init({
restPkiUrl: 'https://YourRestPKI.com/',
ready: onWebPkiReady,
});
note

If WebPKI is not being used in conjunction with RestPKI, this setting is unnecessary.

Without restPkiUrl, Web PKI calls the standard instance through https://restpki.lacunasoftware.com/, an alternative address of https://pki.rest that, being more conventional, is less likely to be blocked by the firewalls of the users' networks. If a network blocks it, its administrator must allow the domain restpki.lacunasoftware.com over HTTPS. See Error "Could not get pending signature".

For more information about the arguments passed to the init(), please refer to the method's documentation.

View as Markdown