Web Crypto: exportKey
This page shows the use of the exportKey() function of the Web Crypto API.
On page load, it generates four keys:
- An AES-GCM secret key
 - An RSA-PSS signing key pair
 - An RSA-OAEP encryption key pair
 - An ECDSA signing key pair
 
It provides four buttons across the top:
- Export the AES-GCM key in raw format
 - Export the RSA-PSS private key in PKCS #8 format
 - Export the RSA-OAEP public key in SubjectPublicKeyInfo format
 - Export the ECDSA private key in JWK format
 
The exported key is written to the area below the buttons. PKCS #8 and SubjectPublicKeyInfo formats are further encoded as PEM objects.