Lines Matching refs:bio_err
141 if (bio_err == NULL ) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE); in MAIN()
143 if (!load_config(bio_err, NULL)) in MAIN()
197 if (!set_pbe(bio_err, &cert_pbe, *++args)) in MAIN()
200 if (!set_pbe(bio_err, &key_pbe, *++args)) in MAIN()
285 BIO_printf (bio_err, "Usage: pkcs12 [options]\n"); in MAIN()
286 BIO_printf (bio_err, "where options are\n"); in MAIN()
287 BIO_printf (bio_err, "-export output PKCS12 file\n"); in MAIN()
288 BIO_printf (bio_err, "-chain add certificate chain\n"); in MAIN()
289 BIO_printf (bio_err, "-inkey file private key if not infile\n"); in MAIN()
290 BIO_printf (bio_err, "-certfile f add all certs in f\n"); in MAIN()
291 BIO_printf (bio_err, "-CApath arg - PEM format directory of CA's\n"); in MAIN()
292 BIO_printf (bio_err, "-CAfile arg - PEM format file of CA's\n"); in MAIN()
293 BIO_printf (bio_err, "-name \"name\" use name as friendly name\n"); in MAIN()
294 BIO_printf (bio_err, "-caname \"nm\" use nm as CA friendly name (can be used more than once).\n"); in MAIN()
295 BIO_printf (bio_err, "-in infile input filename\n"); in MAIN()
296 BIO_printf (bio_err, "-out outfile output filename\n"); in MAIN()
297 BIO_printf (bio_err, "-noout don't output anything, just verify.\n"); in MAIN()
298 BIO_printf (bio_err, "-nomacver don't verify MAC.\n"); in MAIN()
299 BIO_printf (bio_err, "-nocerts don't output certificates.\n"); in MAIN()
300 BIO_printf (bio_err, "-clcerts only output client certificates.\n"); in MAIN()
301 BIO_printf (bio_err, "-cacerts only output CA certificates.\n"); in MAIN()
302 BIO_printf (bio_err, "-nokeys don't output private keys.\n"); in MAIN()
303 BIO_printf (bio_err, "-info give info about PKCS#12 structure.\n"); in MAIN()
304 BIO_printf (bio_err, "-des encrypt private keys with DES\n"); in MAIN()
305 BIO_printf (bio_err, "-des3 encrypt private keys with triple DES (default)\n"); in MAIN()
307 BIO_printf (bio_err, "-idea encrypt private keys with idea\n"); in MAIN()
310 BIO_printf (bio_err, "-seed encrypt private keys with seed\n"); in MAIN()
313 BIO_printf (bio_err, "-aes128, -aes192, -aes256\n"); in MAIN()
314 BIO_printf (bio_err, " encrypt PEM output with cbc aes\n"); in MAIN()
317 BIO_printf (bio_err, "-camellia128, -camellia192, -camellia256\n"); in MAIN()
318 BIO_printf (bio_err, " encrypt PEM output with cbc camellia\n"); in MAIN()
320 BIO_printf (bio_err, "-nodes don't encrypt private keys\n"); in MAIN()
321 BIO_printf (bio_err, "-noiter don't use encryption iteration\n"); in MAIN()
322 BIO_printf (bio_err, "-nomaciter don't use MAC iteration\n"); in MAIN()
323 BIO_printf (bio_err, "-maciter use MAC iteration\n"); in MAIN()
324 BIO_printf (bio_err, "-nomac don't generate MAC\n"); in MAIN()
325 BIO_printf (bio_err, "-twopass separate MAC, encryption passwords\n"); in MAIN()
326 …BIO_printf (bio_err, "-descert encrypt PKCS#12 certificates with triple DES (default RC2-40)\… in MAIN()
327 BIO_printf (bio_err, "-certpbe alg specify certificate PBE algorithm (default RC2-40)\n"); in MAIN()
328 BIO_printf (bio_err, "-keypbe alg specify private key PBE algorithm (default 3DES)\n"); in MAIN()
329 BIO_printf (bio_err, "-macalg alg digest algorithm used in MAC (default SHA1)\n"); in MAIN()
330 BIO_printf (bio_err, "-keyex set MS key exchange type\n"); in MAIN()
331 BIO_printf (bio_err, "-keysig set MS key signature type\n"); in MAIN()
332 BIO_printf (bio_err, "-password p set import/export password source\n"); in MAIN()
333 BIO_printf (bio_err, "-passin p input file pass phrase source\n"); in MAIN()
334 BIO_printf (bio_err, "-passout p output file pass phrase source\n"); in MAIN()
336 BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n"); in MAIN()
338 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR); in MAIN()
339 BIO_printf(bio_err, " load the file (or the files in the directory) into\n"); in MAIN()
340 BIO_printf(bio_err, " the random number generator\n"); in MAIN()
341 BIO_printf(bio_err, "-CSP name Microsoft CSP name\n"); in MAIN()
342 BIO_printf(bio_err, "-LMK Add local machine keyset attribute to private key\n"); in MAIN()
347 e = setup_engine(bio_err, engine, 0); in MAIN()
355 if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) { in MAIN()
356 BIO_printf(bio_err, "Error getting passwords\n"); in MAIN()
374 app_RAND_load_file(NULL, bio_err, (inrand != NULL)); in MAIN()
376 BIO_printf(bio_err,"%ld semi-random bytes loaded\n", in MAIN()
388 BIO_printf(bio_err, "Error opening input file %s\n", in MAIN()
409 BIO_printf(bio_err, "Error opening output file %s\n", in MAIN()
420 BIO_printf (bio_err, "Can't read Password\n"); in MAIN()
438 BIO_printf(bio_err, "Nothing to do!\n"); in MAIN()
451 key = load_key(bio_err, keyname ? keyname : infile, in MAIN()
465 certs = load_certs(bio_err, infile, FORMAT_PEM, NULL, e, in MAIN()
489 BIO_printf(bio_err, "No certificate matches private key\n"); in MAIN()
505 if(!(morecerts = load_certs(bio_err, certfile, FORMAT_PEM, in MAIN()
531 BIO_printf (bio_err, "Memory allocation error\n"); in MAIN()
549 BIO_printf (bio_err, "Error %s getting chain.\n", in MAIN()
552 ERR_print_errors(bio_err); in MAIN()
580 BIO_printf (bio_err, "Can't read Password\n"); in MAIN()
595 ERR_print_errors (bio_err); in MAIN()
604 BIO_printf(bio_err, "Unknown digest algorithm %s\n", in MAIN()
640 ERR_print_errors(bio_err); in MAIN()
648 BIO_printf (bio_err, "Can't read Password\n"); in MAIN()
657 …if ((options & INFO) && p12->mac) BIO_printf (bio_err, "MAC Iteration %ld\n", p12->mac->iter ? ASN… in MAIN()
667 BIO_printf (bio_err, "Mac verify error: invalid password?\n"); in MAIN()
668 ERR_print_errors (bio_err); in MAIN()
671 BIO_printf (bio_err, "MAC verified OK\n"); in MAIN()
681 BIO_printf(bio_err, "Error outputting keys and certificates\n"); in MAIN()
682 ERR_print_errors (bio_err); in MAIN()
691 if(export_cert || inrand) app_RAND_write_file(NULL, bio_err); in MAIN()
719 if (options & INFO) BIO_printf (bio_err, "PKCS7 Data\n"); in dump_certs_keys_p12()
722 BIO_printf(bio_err, "PKCS7 Encrypted data: "); in dump_certs_keys_p12()
723 alg_print(bio_err, in dump_certs_keys_p12()
770 if (options & INFO) BIO_printf (bio_err, "Key bag\n"); in dump_certs_pkeys_bag()
782 BIO_printf (bio_err, "Shrouded Keybag: "); in dump_certs_pkeys_bag()
783 alg_print (bio_err, bag->value.shkeybag->algor); in dump_certs_pkeys_bag()
800 if (options & INFO) BIO_printf (bio_err, "Certificate bag\n"); in dump_certs_pkeys_bag()
815 if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n"); in dump_certs_pkeys_bag()
821 BIO_printf (bio_err, "Warning unsupported bag type: "); in dump_certs_pkeys_bag()
822 i2a_ASN1_OBJECT (bio_err, bag->type); in dump_certs_pkeys_bag()
823 BIO_printf (bio_err, "\n"); in dump_certs_pkeys_bag()
869 BIO_printf (bio_err, "%s, Iteration %ld\n", in alg_print()
978 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str); in set_pbe()