Press Generate to create a new key pair with the browser's own WebCrypto API (an ECDSA key on the P-256 curve, the format the Web Push standard requires).
- The public key goes in your page, in
pushManager.subscribe({ applicationServerKey }). - The private key goes on your server only, in your web-push library settings. Never put it in client code or commit it to a repository.
The keys are created on your device and never sent anywhere. Generate one pair per site and keep it: changing keys invalidates every existing subscription. Full walkthrough: web push notifications.