This page contains a set of tests which are designed to test the ability of the X.509 code to generate self-signed certificates using the supported signature algorithms.
The certificates are self-signed, hence the ability to generate non-signing certificates (e.g. for Diffie-Hellman keys, used by SKIP) is not directly tested here.
Some more features that are not currently tested, and which are of interest, are:
This test is supposed to pass, with the result "TBS". It generates an RSA key pair, wraps it up in a certificate, signs it with the "MD5 with RSA" certificate signing algorithm, and then parses and verifies the resulting data.
| title | MD5withRSA_gen |
| name | MD5withRSA_gen |
| Description: | |
| source | CertGen.java |
| executeClass | sun.security.x509.tests.CertGen |
| executeArgs | MD5withRSA |
This test is supposed to pass, with the result "TBS". It generates an RSA key pair, wraps it up in a certificate, signs it with the "MD2 with RSA" certificate signing algorithm, and then parses and verifies the resulting data.
| title | MD2withRSA_gen |
| name | MD2withRSA_gen |
| Description: | |
| source | CertGen.java |
| executeClass | sun.security.x509.tests.CertGen |
| executeArgs | MD2withRSA |
This test is supposed to pass, with the result "TBS". It generates a DSS/DSA key pair, wraps it up in a certificate, signs it with the "SHA1 with DSA" certificate signing algorithm, and then parses and verifies the resulting data.
| title | DSS_gen |
| name | DSS_gen |
| Description: | |
| source | CertGen.java |
| executeClass | sun.security.x509.tests.CertGen |
| executeArgs | SHA1WithDSA |