# Generate private key
openssl ecparam -genkey -name prime256v1 -noout -out ec256-private.pem

# Extract public key
openssl ec -in ec256-private.pem -pubout -out ec256-public.pem

Write-Host ""
Write-Host "Private Key (DER base64):"
openssl ec -in ec256-private.pem -outform DER | openssl base64 -A

Write-Host ""
Write-Host "--------------------------------"
Write-Host ""

Write-Host "Public Key (DER base64):"
openssl ec -in ec256-private.pem -pubout -outform DER | openssl base64 -A
