docker/pwgen/vapid.go
2021-02-10 02:28:20 +03:00

15 lines
291 B
Go

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
}
}