OraRSA tutorial

This online tutorial demonstrates the usage of the DidiSoft OraRSA+OraSMIME (ORA_RSA and ORA_SMIME) PL/SQL package.
Intended audience: PL/SQL developers, Oracle DBA’s


ORA_RSA is a PL/SQL package providing functions for performing RSA asymmetric cryptography within the Oracle (c) Database product version 11 and above.  The package supports RSA keys in a wide variety of common formats, including .cer/.crt, PEM and DER-encoded keys, .pfx/.p12 (PKCS12) password protected formats.

ORA_SMIME is an additional package that extends UTL_SMTP with support for S/MIME (Secure/Multipurpose Internet Mail Extensions) signed end encrypted emails.

Table of contents


ORA_RSA – low level RSA cryptography

ORA_SMIME – S/MIME signed and encrypted emails

CMS (Cryptography message syntax)

X.509 certificates

JWT (JSON Web token)

Exception handling

Appendix A. Exception handling