mirror of https://github.com/mitchell/selfpass.git
14 lines
258 B
Bash
14 lines
258 B
Bash
|
#!/usr/bin/env sh
|
||
|
ca=$(cat ./certs/ca.pem)
|
||
|
cert=$(cat ./certs/server.pem)
|
||
|
key=$(cat ./certs/server-key.pem)
|
||
|
|
||
|
cat << EOM
|
||
|
// Code generated by inject-certs.sh, DO NOT EDIT.
|
||
|
package main
|
||
|
|
||
|
const ca = \`${ca}\`
|
||
|
const cert = \`${cert}\`
|
||
|
const key = \`${key}\`
|
||
|
EOM
|