12 #ifndef OPENSSL_NO_ENGINE
19 int main(
int argc,
char **argv)
29 mkcert(&x509,&pkey,512,0,365);
35 PEM_write_X509(stdout,x509);
40 #ifndef OPENSSL_NO_ENGINE
68 if ((pkeyp == NULL) || (*pkeyp == NULL))
79 if ((x509p == NULL) || (*x509p == NULL))
81 if ((x=X509_new()) == NULL)
133 nid =
OBJ_create(
"1.2.3.4",
"MyAlias",
"My Test Alias Extension");
135 add_ext(x, nid,
"example comment alias");
169 X509_EXTENSION_free(ex);