xaio
InvalidData: No certificates found in cert file
this is what worked for me - fresh.config.ts:
import { defineConfig } from "$fresh/server.ts";
const cert = {
key: Deno.readTextFileSync('./cert/server.key'),
cert: Deno.readTextFileSync('./cert/server.crt')
};
export default defineConfig({
plugins: [
// Plugins here
],
server: {
cert: cert.cert,
key: cert.key,
port: 8443,
},
});
9 replies