diff --git a/www/apps/book/app/learn/configurations/medusa-config/asymmetric-encryption/page.mdx b/www/apps/book/app/learn/configurations/medusa-config/asymmetric-encryption/page.mdx new file mode 100644 index 0000000000..afa3beb911 --- /dev/null +++ b/www/apps/book/app/learn/configurations/medusa-config/asymmetric-encryption/page.mdx @@ -0,0 +1,484 @@ +import { TypeList, Table } from "docs-ui" + +export const metadata = { + title: `${pageNumber} Asymmetric Encryption`, +} + +# {metadata.title} + +In this chapter, you'll learn how to configure asymmetric encryption in Medusa using public/private key pairs instead of a shared secret. + +## What is Asymmetric Encryption? + +By default, Medusa uses symmetric JWT authentication, where the same secret signs and verifies tokens. With asymmetric encryption, you use a private key to sign tokens and a public key to verify them. + +This approach provides better security, supports key rotation, and enables distributed systems where multiple services can verify tokens without needing access to the signing key. + +### When to Use Asymmetric Encryption + +Asymmetric encryption is useful in several scenarios: + +