证书是.key 和 .crt 后缀,没有.pem,如何转化。且报错:SyntaxError: Unexpected token
来源:3-4 【来点实战】创建https服务

Wynnja
2022-03-18
1.通过华为云下载下来的证书是.key 和 .crt 后缀没有,pem,如何转化
2.运行代码后报错SyntaxError: Unexpected token ‘;’ [90m at Object.compileFunction (node:vm:352:18)[39m [90m at wrapSafe (node:internal/modules/cjs/loader:1032:15)[39m [90m at Module._compile (node:internal/modules/cjs/loader:1067:27)[39m [90m at Object.Module._extensions…js (node:internal/modules/cjs/loader:1157:10)[39m [90m at Module.load (node:internal/modules/cjs/loader:981:32)[39m [90m at Function.Module._load (node:internal/modules/cjs/loader:822:12)[39m [90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)[39m [90m at node:internal/main/run_main_module:17:47[39m
1回答
-
李超
2022-03-18
问题已经解决了吧?
012022-03-18
相似问题