docker/pwgen/vapid.go

15 lines
291 B
Go
Raw Permalink Normal View History

2021-02-09 23:28:20 +00:00
package main
import (
webpush "github.com/SherClockHolmes/webpush-go"
)
func main() {
privateKey, publicKey, err := webpush.GenerateVAPIDKeys()
print("vapidPrivateKey: ", privateKey, "\n")
print("vapidPublicKey: ", publicKey, "\n")
if err != nil {
// TODO: Handle error
}
}