Home
last modified time | relevance | path

Searched refs:x509 (Results 1 – 25 of 181) sorted by relevance

12345678

/freebsd/crypto/heimdal/lib/asn1/
H A Drfc2459.asn124 id-heim-rsa-pkcs1-x509 OBJECT IDENTIFIER ::= { 1 2 752 43 16 1 }
145 id-x509-ce OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29}
280 id-x509-ce-keyUsage OBJECT IDENTIFIER ::= { id-x509-ce 15 }
294 id-x509-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-x509-ce 35 }
305 id-x509-ce-subjectKeyIdentifier OBJECT IDENTIFIER ::= { id-x509-ce 14 }
309 id-x509-ce-basicConstraints OBJECT IDENTIFIER ::= { id-x509-ce 19 }
316 id-x509-ce-nameConstraints OBJECT IDENTIFIER ::= { id-x509-ce 30 }
333 id-x509-ce-privateKeyUsagePeriod OBJECT IDENTIFIER ::= { id-x509-ce 16 }
334 id-x509-ce-certificatePolicies OBJECT IDENTIFIER ::= { id-x509-ce 32 }
335 id-x509-ce-policyMappings OBJECT IDENTIFIER ::= { id-x509-ce 33 }
[all …]
/freebsd/crypto/openssl/test/certs/
H A Dsetup.sh14 openssl x509 -in root-cert.pem -trustout \
16 openssl x509 -in root-cert.pem -trustout \
18 openssl x509 -in root-cert.pem -trustout \
20 openssl x509 -in root-cert.pem -trustout \
23 openssl x509 -in root-cert.pem -trustout \
25 openssl x509 -in root-cert.pem -trustout \
28 openssl x509 -in root-cert2.pem -trustout \
30 openssl x509 -in root-cert2.pem -trustout \
32 openssl x509 -in root-cert2.pem -trustout \
35 openssl x509 -in root-nonca.pem -trustout \
[all …]
/freebsd/crypto/openssl/demos/certs/apps/
H A Dmkacerts.sh8 CN="OpenSSL Test Root CA" $OPENSSL req -config apps.cnf -x509 -nodes \
14 $OPENSSL x509 -req -in intreq.pem -CA root.pem -CAkey rootkey.pem -days 3630 \
20 $OPENSSL x509 -req -in creq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
22 $OPENSSL x509 -nameopt oneline -subject -issuer >client.pem
27 $OPENSSL x509 -req -in sreq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
29 $OPENSSL x509 -nameopt oneline -subject -issuer >server.pem
34 $OPENSSL x509 -req -in sreq2.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
36 $OPENSSL x509 -nameopt oneline -subject -issuer >server2.pem
H A Dmkxcerts.sh7 -config apps.cnf -extensions usr_cert -x509 -nodes \
10 -config apps.cnf -extensions usr_cert -x509 -nodes \
13 -config apps.cnf -extensions usr_cert -x509 -nodes \
22 -config apps.cnf -extensions ec_cert -x509 -nodes \
27 -config apps.cnf -extensions ec_cert -x509 -nodes \
/freebsd/crypto/openssl/test/smime-certs/
H A Dmksmime-certs.sh17 CN="Test S/MIME RSA Root" $OPENSSL req -config ca.cnf -x509 -noenc \
24 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
29 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
34 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
43 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
47 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
51 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
61 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
65 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
81 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
/freebsd/contrib/libfido2/regress/
H A Dcred.c185 static const unsigned char x509[742] = {
1528 assert(fido_cred_set_x509(c, x509, sizeof(x509)) == FIDO_OK); in valid_cred()
1553 assert(fido_cred_set_x509(c, x509, sizeof(x509)) == FIDO_OK); in no_cdh()
1577 assert(fido_cred_set_x509(c, x509, sizeof(x509)) == FIDO_OK); in no_rp_id()
1602 assert(fido_cred_set_x509(c, x509, sizeof(x509)) == FIDO_OK); in no_rp_name()
1630 assert(fido_cred_set_x509(c, x509, sizeo in no_authdata()
183 static const unsigned char x509[742] = { global() variable
[all...]
/freebsd/crypto/openssl/apps/
H A Dnseq.c41 X509 *x509 = NULL; in nseq_main() local
94 while ((x509 = PEM_read_bio_X509(in, NULL, NULL, NULL))) { in nseq_main()
95 if (!sk_X509_push(seq->certs, x509)) in nseq_main()
119 x509 = sk_X509_value(seq->certs, i); in nseq_main()
120 dump_cert_text(out, x509); in nseq_main()
121 PEM_write_bio_X509(out, x509); in nseq_main()
/freebsd/crypto/openssl/test/
H A Dx509_check_cert_pkey_test.c31 X509 *x509 = NULL; in test_x509_check_cert_pkey() local
73 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL); in test_x509_check_cert_pkey()
74 if (x509 == NULL) { in test_x509_check_cert_pkey()
79 result = X509_check_private_key(x509, pkey); in test_x509_check_cert_pkey()
103 X509_free(x509); in test_x509_check_cert_pkey()
127 if (it->x509 != NULL) in test_PEM_X509_INFO_read_bio()
H A Dalgorithmid_test.c279 int n, x509 = 0, spki = 0, testcount = 0; in setup_tests() local
284 x509 = 1; in setup_tests()
298 testcount = x509 + spki; in setup_tests()
310 } else if (x509 && n == 2) { in setup_tests()
318 } else if (x509 && (eecert_filename == NULL || cacert_filename == NULL)) { in setup_tests()
323 if (x509) in setup_tests()
H A Dhttp_test.c19 static X509 *x509 = NULL; variable
109 (ASN1_VALUE *)x509, x509_it); in http_bio_cb_ex()
119 BIO *rsp, *req = ASN1_item_i2d_mem_bio(x509_it, (ASN1_VALUE *)x509); in test_http_x509()
146 res = TEST_ptr(rcert) && TEST_int_eq(X509_cmp(x509, rcert), 0); in test_http_x509()
362 X509_free(x509); in cleanup_tests()
373 if (!TEST_ptr((x509 = load_cert_pem(test_get_argument(0), NULL)))) in setup_tests()
/freebsd/crypto/openssl/test/recipes/
H A D25-test_verify_store.t42 x509( 'convert request into self-signed cert',
51 x509( 'convert cert into a cert request',
83 x509( 'sign user cert request',
96 x509( 'Certificate details',
113 sub x509 {
/freebsd/crypto/openssl/fuzz/
H A Dbuild.info27 PROGRAMS{noinst}=x509
74 SOURCE[x509]=x509.c driver.c fuzz_rand.c
75 INCLUDE[x509]=../include {- $ex_inc -}
76 DEPEND[x509]=../libcrypto {- $ex_lib -}
95 PROGRAMS{noinst}=x509-test
143 SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
144 INCLUDE[x509-test]=../include
145 DEPEND[x509-test]=../libcrypto
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_kiss.c188 X509 *x509; in parse_bag() local
223 if ((x509 = PKCS12_SAFEBAG_get1_cert(bag)) == NULL) in parse_bag()
225 if (lkid && !X509_keyid_set1(x509, lkid->data, lkid->length)) { in parse_bag()
226 X509_free(x509); in parse_bag()
235 r = X509_alias_set1(x509, data, len); in parse_bag()
238 X509_free(x509); in parse_bag()
244 if (!sk_X509_push(ocerts, x509)) { in parse_bag()
245 X509_free(x509); in parse_bag()
/freebsd/usr.sbin/certctl/
H A Dcertctl.sh83 if hash=$(openssl x509 -noout -subject_hash -in "$1") ; then
116 certhash=$(openssl x509 -sha1 -in "$1" -noout -fingerprint)
118 otherhash=$(openssl x509 -sha1 -in "$otherfile" -noout -fingerprint)
125 otherhash=$(openssl x509 -sha1 -in "$otherfile" -noout -fingerprint)
221 …subject=$(openssl x509 -noout -subject -nameopt multiline -in "$CFILE" | sed -n '/commonName/s/.*=…
224 subject=$(openssl x509 -noout -subject -in "$CFILE")
274 certhash=$(openssl x509 -sha1 -in "$UTFILE" -noout -fingerprint)
276 untrustedhash=$(openssl x509 -sha1 -in "$UNTRUSTEDFILE" -noout -fingerprint)
/freebsd/crypto/openssl/demos/certs/
H A Dmkcerts.sh8 CN="Test Root CA" $OPENSSL req -config ca.cnf -x509 -nodes \
14 $OPENSSL x509 -req -in intreq.pem -CA root.pem -days 3600 \
21 $OPENSSL x509 -req -in req.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
28 $OPENSSL x509 -req -in creq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
35 $OPENSSL x509 -req -in rreq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
42 $OPENSSL x509 -req -in respreq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \
60 $OPENSSL x509 -req -in dhsreq.pem -CA root.pem -days 3600 \
70 $OPENSSL x509 -req -in dhcreq.pem -CA root.pem -days 3600 \
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_lib.c251 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509) in PKCS7_add_certificate() argument
269 return ossl_x509_add_cert_new(sk, x509, X509_ADD_FLAG_UP_REF); in PKCS7_add_certificate()
338 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, in PKCS7_SIGNER_INFO_set() argument
347 X509_get_issuer_name(x509))) in PKCS7_SIGNER_INFO_set()
356 ASN1_INTEGER_dup(X509_get0_serialNumber(x509)))) in PKCS7_SIGNER_INFO_set()
387 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509, EVP_PKEY *pkey, in PKCS7_add_signature() argument
405 if (PKCS7_SIGNER_INFO_set(si, x509, pkey, dgst) <= 0) in PKCS7_add_signature()
565 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509) in PKCS7_add_recipient() argument
571 if (PKCS7_RECIP_INFO_set(ri, x509) <= 0) in PKCS7_add_recipient()
617 int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509) in PKCS7_RECIP_INFO_set() argument
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_lu.c168 ret = X509_subject_name_cmp((*a)->data.x509, (*b)->data.x509); in x509_object_cmp()
368 obj->data.x509 = (X509 *)x; in x509_store_add()
420 return X509_up_ref(a->data.x509); in X509_OBJECT_up_ref_count()
431 return a->data.x509; in X509_OBJECT_get0_X509()
466 X509_free(a->data.x509); in x509_object_free_internal()
481 a->data.x509 = obj; in X509_OBJECT_set1_X509()
513 stmp.data.x509 = &x509_s; in x509_object_idx_cnt()
628 x = obj->data.x509; in STACK_OF()
705 if (!X509_cmp(obj->data.x509, x->data.x509)) in X509_OBJECT_retrieve_match()
742 if (ctx->check_issued(ctx, x, obj->data.x509)) { in X509_STORE_CTX_get1_issuer()
[all …]
H A Dx509_cmp.c352 X509 x, *x509 = NULL; in X509_find_by_issuer_and_serial() local
361 x509 = sk_X509_value(sk, i); in X509_find_by_issuer_and_serial()
362 if (X509_issuer_and_serial_cmp(x509, &x) == 0) in X509_find_by_issuer_and_serial()
363 return x509; in X509_find_by_issuer_and_serial()
370 X509 *x509; in X509_find_by_subject() local
374 x509 = sk_X509_value(sk, i); in X509_find_by_subject()
375 if (X509_NAME_cmp(X509_get_subject_name(x509), name) == 0) in X509_find_by_subject()
376 return x509; in X509_find_by_subject()
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_info.c97 if (xi->x509 != NULL) { in STACK_OF()
108 xi->x509 = X509_new_ex(libctx, propq); in STACK_OF()
109 if (xi->x509 == NULL) in STACK_OF()
111 pp = &(xi->x509); in STACK_OF()
192 if ((xi->x509 != NULL) || (xi->crl != NULL) || in STACK_OF()
297 if ((xi->x509 != NULL) && (PEM_write_bio_X509(bp, xi->x509) <= 0)) in PEM_X509_INFO_write_bio()
/freebsd/crypto/openssl/ssl/
H A Dssl_rsa.c20 static int ssl_set_cert(CERT *c, X509 *x509);
127 if (c->pkeys[i].x509 != NULL in ssl_set_pkey()
128 && !X509_check_private_key(c->pkeys[i].x509, pkey)) in ssl_set_pkey()
269 X509_free(c->pkeys[i].x509); in ssl_set_cert()
271 c->pkeys[i].x509 = x; in ssl_set_cert()
923 static int ssl_set_cert_and_key(SSL *ssl, SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey, in ssl_set_cert_and_key() argument
935 rv = ssl_security_cert(ssl, ctx, x509, 0, 1); in ssl_set_cert_and_key()
948 pubkey = X509_get_pubkey(x509); /* bumps reference */ in ssl_set_cert_and_key()
986 if (!override && (c->pkeys[i].x509 != NULL in ssl_set_cert_and_key()
1005 X509_free(c->pkeys[i].x509); in ssl_set_cert_and_key()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DSSL_CTX_add1_chain_cert.pod19 int SSL_CTX_add0_chain_cert(SSL_CTX *ctx, X509 *x509);
20 int SSL_CTX_add1_chain_cert(SSL_CTX *ctx, X509 *x509);
26 int SSL_add0_chain_cert(SSL *ssl, X509 *x509);
27 int SSL_add1_chain_cert(SSL *ssl, X509 *x509);
34 int SSL_CTX_select_current_cert(SSL_CTX *ctx, X509 *x509);
35 int SSL_select_current_cert(SSL *ssl, X509 *x509);
45 certificate B<x509> to the chain associated with the current certificate of
74 SSL_CTX_select_current_cert() selects B<x509> as the current end entity
75 certificate, but only if B<x509> has already been loaded into B<ctx> using a
/freebsd/lib/libbearssl/
H A DMakefile144 x509/encode_ec_pk8der.c \
145 x509/encode_ec_rawder.c \
146 x509/encode_rsa_pk8der.c \
147 x509/encode_rsa_rawder.c \
148 x509/skey_decoder.c \
149 x509/x509_knownkey.c \
150 x509/x509_minimal_full.c \
/freebsd/contrib/unbound/smallapp/
H A Dunbound-control-setup.sh122 openssl req -key $SVR_BASE.key -config request.cfg -new -x509 -days $DAYS -out $SVR_BASE.pem || er…
124 openssl x509 -in $SVR_BASE.pem -addtrust serverAuth -out $SVR_BASE"_trust.pem"
139 openssl req -key $CTL_BASE.key -config request.cfg -new | openssl x509 -req -days $DAYS -CA $SVR_BA…
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_ssl.c126 X509 *x509 = NULL; in ssl_getcert() local
133 x509 = X509_new(); in ssl_getcert()
134 tt_assert(x509); in ssl_getcert()
135 tt_assert(0 != X509_set_version(x509, 2)); in ssl_getcert()
136 tt_assert(0 != ASN1_INTEGER_set(X509_get_serialNumber(x509), in ssl_getcert()
147 X509_set_subject_name(x509, name); in ssl_getcert()
148 X509_set_issuer_name(x509, name); in ssl_getcert()
151 X509_time_adj(X509_getm_notBefore(x509), 0, &now); in ssl_getcert()
153 X509_time_adj(X509_getm_notAfter(x509), 0, &now); in ssl_getcert()
154 X509_set_pubkey(x509, key); in ssl_getcert()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_ssl.c126 X509 *x509 = NULL; in ssl_getcert() local
133 x509 = X509_new(); in ssl_getcert()
134 tt_assert(x509); in ssl_getcert()
135 tt_assert(0 != X509_set_version(x509, 2)); in ssl_getcert()
136 tt_assert(0 != ASN1_INTEGER_set(X509_get_serialNumber(x509), in ssl_getcert()
147 X509_set_subject_name(x509, name); in ssl_getcert()
148 X509_set_issuer_name(x509, name); in ssl_getcert()
151 X509_time_adj(X509_getm_notBefore(x509), 0, &now); in ssl_getcert()
153 X509_time_adj(X509_getm_notAfter(x509), 0, &now); in ssl_getcert()
154 X509_set_pubkey(x509, key); in ssl_getcert()
[all …]

12345678