Home | History | Annotate | Download | only in apps

Lines Matching refs:bio_err

203 	if (bio_err == NULL)
204 if ((bio_err=BIO_new(BIO_s_file())) != NULL)
205 BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
239 BIO_printf(bio_err, "Can't find keygen engine %s\n", *argv);
394 BIO_printf(bio_err,"unknown option %s\n",*argv);
405 BIO_printf(bio_err,"%s [options] <infile >outfile\n",prog);
406 BIO_printf(bio_err,"where options are\n");
407 BIO_printf(bio_err," -inform arg input format - DER or PEM\n");
408 BIO_printf(bio_err," -outform arg output format - DER or PEM\n");
409 BIO_printf(bio_err," -in arg input file\n");
410 BIO_printf(bio_err," -out arg output file\n");
411 BIO_printf(bio_err," -text text form of request\n");
412 BIO_printf(bio_err," -pubkey output public key\n");
413 BIO_printf(bio_err," -noout do not output REQ\n");
414 BIO_printf(bio_err," -verify verify signature on REQ\n");
415 BIO_printf(bio_err," -modulus RSA modulus\n");
416 BIO_printf(bio_err," -nodes don't encrypt the output key\n");
418 BIO_printf(bio_err," -engine e use engine e, possibly a hardware device\n");
420 BIO_printf(bio_err," -subject output the request's subject\n");
421 BIO_printf(bio_err," -passin private key password source\n");
422 BIO_printf(bio_err," -key file use the private key contained in file\n");
423 BIO_printf(bio_err," -keyform arg key file format\n");
424 BIO_printf(bio_err," -keyout arg file to send the key to\n");
425 BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
426 BIO_printf(bio_err," load the file (or the files in the directory) into\n");
427 BIO_printf(bio_err," the random number generator\n");
428 BIO_printf(bio_err," -newkey rsa:bits generate a new RSA key of 'bits' in size\n");
429 BIO_printf(bio_err," -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n");
431 BIO_printf(bio_err," -newkey ec:file generate a new EC key, parameters taken from CA in 'file'\n");
433 BIO_printf(bio_err," -[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)\n");
434 BIO_printf(bio_err," -config file request template file.\n");
435 BIO_printf(bio_err," -subj arg set or modify request subject\n");
436 BIO_printf(bio_err," -multivalue-rdn enable support for multivalued RDNs\n");
437 BIO_printf(bio_err," -new new request.\n");
438 BIO_printf(bio_err," -batch do not ask anything during request generation\n");
439 BIO_printf(bio_err," -x509 output a x509 structure instead of a cert. req.\n");
440 BIO_printf(bio_err," -days number of days a certificate generated by -x509 is valid for.\n");
441 BIO_printf(bio_err," -set_serial serial number to use for a certificate generated by -x509.\n");
442 BIO_printf(bio_err," -newhdr output \"NEW\" in the header lines\n");
443 BIO_printf(bio_err," -asn1-kludge Output the 'request' in a format that is wrong but some CA's\n");
444 BIO_printf(bio_err," have been reported as requiring\n");
445 BIO_printf(bio_err," -extensions .. specify certificate extension section (override value in config file)\n");
446 BIO_printf(bio_err," -reqexts .. specify request extension section (override value in config file)\n");
447 BIO_printf(bio_err," -utf8 input characters are UTF8 (default ASCII)\n");
448 BIO_printf(bio_err," -nameopt arg - various certificate name options\n");
449 BIO_printf(bio_err," -reqopt arg - various request text options\n\n");
454 if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
455 BIO_printf(bio_err, "Error getting passwords\n");
476 BIO_printf(bio_err,"Using configuration from %s\n",template);
481 BIO_printf(bio_err,"error on line %ld of %s\n",errline,template);
491 BIO_printf(bio_err,"Unable to load config info from %s\n", default_config_file);
496 BIO_printf(bio_err,"Using configuration from %s\n",
502 if (!load_config(bio_err, req_conf))
515 BIO_printf(bio_err,"problems opening %s for extra oid's\n",p);
516 ERR_print_errors(bio_err);
526 if(!add_oid_section(bio_err, req_conf)) goto end;
552 BIO_printf(bio_err,
577 BIO_printf(bio_err, "Invalid global string mask setting %s\n", p);
603 BIO_printf(bio_err,
616 e = setup_engine(bio_err, engine, 0);
621 pkey = load_key(bio_err, keyfile, keyform, 0, passin, e,
634 app_RAND_load_file(randfile, bio_err, 0);
643 app_RAND_load_file(randfile, bio_err, 0);
649 genctx = set_keygen_ctx(bio_err, keyalg, &pkey_type, &newkey,
663 BIO_printf(bio_err,"private key length is too short,\n");
664 BIO_printf(bio_err,"it needs to be at least %d bits, not %ld\n",MIN_KEY_LENGTH,newkey);
670 genctx = set_keygen_ctx(bio_err, NULL, &pkey_type, &newkey,
684 BIO_printf(bio_err,
687 ERR_print_errors(bio_err);
693 BIO_printf(bio_err,"Generating a %ld bit %s private key\n",
697 EVP_PKEY_CTX_set_app_data(genctx, bio_err);
701 BIO_puts(bio_err, "Error Generating Key\n");
708 app_RAND_write_file(randfile, bio_err);
719 BIO_printf(bio_err,"writing new private key to stdout\n");
730 BIO_printf(bio_err,"writing new private key to '%s'\n",keyout);
764 BIO_printf(bio_err,"-----\n");
790 BIO_printf(bio_err,"bad input format specified for X509 request\n");
795 BIO_printf(bio_err,"unable to load X509 request\n");
804 BIO_printf(bio_err,"you need to specify a private key\n");
825 BIO_printf(bio_err,"problems making Certificate Request\n");
865 BIO_printf(bio_err,
871 i=do_X509_sign(bio_err, x509ss, pkey, digest, sigopts);
874 ERR_print_errors(bio_err);
891 BIO_printf(bio_err,
896 i=do_X509_REQ_sign(bio_err, req, pkey, digest, sigopts);
899 ERR_print_errors(bio_err);
907 BIO_printf(bio_err, "Cannot modifiy certificate subject\n");
915 BIO_printf(bio_err, "Modifying Request's Subject\n");
916 print_name(bio_err, "old subject=", X509_REQ_get_subject_name(req), nmflag);
921 BIO_printf(bio_err, "ERROR: cannot modify subject\n");
930 print_name(bio_err, "new subject=", X509_REQ_get_subject_name(req), nmflag);
957 BIO_printf(bio_err,"verify failure\n");
958 ERR_print_errors(bio_err);
961 BIO_printf(bio_err,"verify OK\n");
999 BIO_printf(bio_err,"Error getting public key\n");
1000 ERR_print_errors(bio_err);
1055 BIO_printf(bio_err,"bad output format specified for outfile\n");
1060 BIO_printf(bio_err,"unable to write X509 request\n");
1071 BIO_printf(bio_err,"bad output format specified for outfile\n");
1076 BIO_printf(bio_err,"unable to write X509 certificate\n");
1088 ERR_print_errors(bio_err);
1132 BIO_printf(bio_err,"unable to find '%s' in config\n",
1139 BIO_printf(bio_err,"unable to get '%s' section\n",dn_sect);
1154 BIO_printf(bio_err,"unable to get '%s' section\n",attr_sect);
1219 BIO_printf(bio_err,"You are about to be asked to enter information that will be incorporated\n");
1220 BIO_printf(bio_err,"into your certificate request.\n");
1221 BIO_printf(bio_err,"What you are about to enter is what is called a Distinguished Name or a DN.\n");
1222 BIO_printf(bio_err,"There are quite a few fields but you can leave some blank\n");
1223 BIO_printf(bio_err,"For some fields there will be a default value,\n");
1224 BIO_printf(bio_err,"If you enter '.', the field will be left blank.\n");
1225 BIO_printf(bio_err,"-----\n");
1265 bio_err,"Name '%s' too long\n",v->name);
1302 BIO_printf(bio_err,"error, no objects specified in config file\n");
1310 BIO_printf(bio_err,"\nPlease enter the following 'extra' attributes\n");
1311 BIO_printf(bio_err,"to be sent with your certificate request\n");
1330 BIO_printf(bio_err,"Name '%s' too long\n",v->name);
1372 BIO_printf(bio_err,"No template, please set one up.\n");
1428 BIO_printf(bio_err,"error, no objects specified in config file\n");
1450 if (!batch) BIO_printf(bio_err,"%s [%s]:",text,def);
1451 (void)BIO_flush(bio_err);
1456 BIO_printf(bio_err,"%s\n",value);
1486 BIO_printf(bio_err,"weird input :-(\n");
1509 if (!batch) BIO_printf(bio_err,"%s [%s]:",text,def);
1510 (void)BIO_flush(bio_err);
1515 BIO_printf(bio_err,"%s\n",value);
1545 BIO_printf(bio_err,"weird input :-(\n");
1556 BIO_printf(bio_err, "Error adding attribute\n");
1557 ERR_print_errors(bio_err);
1570 BIO_printf(bio_err,"string is too short, it needs to be at least %d bytes long\n",n_min);
1575 BIO_printf(bio_err,"string is too long, it needs to be less than %d bytes long\n",n_max);
1787 ERR_print_errors(bio_err);