Skip to content

Commit b42af11

Browse files
guardrexCopilot
andauthored
Update aspnetcore/blazor/progressive-web-app/push-notifications.md
Co-authored-by: Copilot <[email protected]>
1 parent 216bb56 commit b42af11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

aspnetcore/blazor/progressive-web-app/push-notifications.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ Placeholders used in this article's example code:
3737

3838
For this article's C# examples, update the `[email protected]` email address to match the address used when creating the custom key pair.
3939

40-
[!INCLUDE[](~/blazor/security/includes/secure-authentication-flows.md)]
40+
> [!IMPORTANT]
41+
> When implementing push notifications, ensure that cryptographic keys are managed securely:
42+
>
43+
> * **Key generation**: Use a trusted library or tool to generate the public and private keys. Avoid using weak or outdated algorithms.
44+
> * **Key storage**: Store private keys securely on the server, using a secure storage mechanism such as a hardware security module (HSM) or encrypted storage. Never expose private keys to the client.
45+
> * **Key usage**: Use the private key only for signing push notification payloads. Ensure that the public key is distributed securely to clients.
46+
>
47+
> For more information on cryptographic best practices, see [Cryptographic Services](/dotnet/standard/security/cryptographic-services).
4148
4249
## Create a subscription
4350

0 commit comments

Comments
 (0)