Error: error:0909006C:PEM routines:get_name:no start line
at node:internal/tls/secure-context:69:13
at Array.forEach ()
at setCerts (node:internal/tls/secure-context:67:3)
at configSecureContext (node:internal/tls/secure-context:156:5)
at Object.createSecureContext (node:_tls_common:121:3)
at Server.setSecureContext (node:_tls_wrap:1349:27)
at Server (node:_tls_wrap:1208:8)
at new Server (node:https:73:3)
at Object.createServer (node:https:109:10)
at new TelegramBotWebHook (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegramWebHook.js:31:31)
at TelegramBot.openWebHook (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegram.js:577:23)
at new TelegramBot (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegram.js:184:14)
at Object.telegrambot (/root/transnodebot/telegram/bot.js:25:17)
at Object. (/root/transnodebot/index.js:4:4)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
library: 'PEM routines',
function: 'get_name',
reason: 'no start line',
code: 'ERR_OSSL_PEM_NO_START_LINE'
}
I have read:
I am using the latest version of the library.
Expected Behavior
node:internal/tls/secure-context:69 context.setCert(cert); ^
Error: error:0909006C:PEM routines:get_name:no start line at node:internal/tls/secure-context:69:13 at Array.forEach ()
at setCerts (node:internal/tls/secure-context:67:3)
at configSecureContext (node:internal/tls/secure-context:156:5)
at Object.createSecureContext (node:_tls_common:121:3)
at Server.setSecureContext (node:_tls_wrap:1349:27)
at Server (node:_tls_wrap:1208:8)
at new Server (node:https:73:3)
at Object.createServer (node:https:109:10)
at new TelegramBotWebHook (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegramWebHook.js:31:31)
at TelegramBot.openWebHook (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegram.js:577:23)
at new TelegramBot (/root/transnodebot/node_modules/node-telegram-bot-api/src/telegram.js:184:14)
at Object.telegrambot (/root/transnodebot/telegram/bot.js:25:17)
at Object. (/root/transnodebot/index.js:4:4)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 { library: 'PEM routines', function: 'get_name', reason: 'no start line', code: 'ERR_OSSL_PEM_NO_START_LINE' }
Actual Behavior
when i create bot with webhook
Steps to reproduce the Behavior
I have:
Introduction
Example