UNPKG

snowflake-sdk

Version:
26 lines (25 loc) 1.03 kB
declare function _exports(options: any, cb: any, mock: any): void; declare namespace _exports { export { buildOcspRetryUrl }; export namespace _testInternals { export { ocsp }; export { CertUtil }; } } export = _exports; /** * Builds the OCSP retry URL for PrivateLink connections. * * - Preserves the full path from the certificate AIA OCSP URI (e.g. /ocsp) * - Preserves non-standard ports from the AIA OCSP URI * * The base64 data is URL-encoded so that the / + = characters are safe as URL * path segments * * @param {string} cacheServerUrl - The value of SF_OCSP_RESPONSE_CACHE_SERVER_URL * @param {string} ocspResponderUri - The OCSP responder URI extracted from the certificate AIA * @param {string} b64data - Base64-encoded DER OCSP request * @returns {string} Full retry URL to use for the GET request to the PrivateLink proxy */ declare function buildOcspRetryUrl(cacheServerUrl: string, ocspResponderUri: string, b64data: string): string; import CertUtil = require("./cert_util");