I send a request to the site and it takes forever, I get no response or error.
async getCookies() {
return await fetch(`https://portal.elpts.ru/portal/`, {
method: "GET",
headers: {
"User-Agent": this.userAgent,
},
follow: "manual",
agent: this.agent,
}).then(res => {
console.log('res: ', res)
return res.headers.get("set-cookie")})
.catch(err => {
console.log('err: ', err)
return err
});
userAgent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
I add intermediate certificate of this site using ssl-root-cas
import sslRootCas from 'ssl-root-cas';
sslRootCas.addFile('/path/to/GlobalSign_GCC.crt')
sslRootCas.inject();
Without this certificate I get an error
Error during task execution: FetchError: request to https://portal.elpts.ru/portal/index failed, reason: unable to verify the first certificate
errno: ‘UNABLE_TO_VERIFY_LEAF_SIGNATURE’
Adding the root certificate and the _.elpts certificate does not affect the requests in any way, only the presence of the GlobalSign GCC R3 DV TLS CA 2020 intermediate certificate determines whether there will be an error. When adding these additional certificates, the request still lasts forever, without returning either a result or an error