Show / Hide Table of Contents
Edit on GitHub

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 a non-standard PKI Rest is used, other than https://pki.rest It is necessary to configure the RestPKI URL that will be used 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.

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

Back to top Copyright © 2015-2020 Lacuna Software