/hostap-3.7.0/tests/hwsim/auth_serv/ |
D | update.sh | 56 if [ ! -r server.csr ]; then 57 …cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr -outform PEM -sha256 59 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server.csr -out server.pem -extensions ext_serv… 67 if [ ! -r server-no-dnsname.csr ]; then 68 …ewkey rsa:2048 -nodes -keyout server-no-dnsname.key -out server-no-dnsname.csr -outform PEM -sha256 70 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server-no-dnsname.csr -out server-no-dnsname.pe… 75 if [ ! -r server-expired.csr ]; then 76 …new -newkey rsa:2048 -nodes -keyout server-expired.key -out server-expired.csr -outform PEM -sha256 78 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server-expired.csr -out server-expired.pem -ext… 83 if [ ! -r server-eku-client.csr ]; then [all …]
|
/hostap-3.7.0/hs20/server/ca/ |
D | setup.sh | 143 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out ocsp.csr -keyout… 144 …h -md sha256 -keyfile demoCA/private/cakey.pem -passin pass:$PASS -in ocsp.csr -out ocsp.pem -days… 151 …WD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out server-revoked.csr -keyout server-revo… 152 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-revoked.csr -out server-revok… 161 …PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out server-client.csr -keyout server-clie… 162 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-client.csr -out server-client… 169 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out user.csr -keyout… 170 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in user.csr -out user.pem -key $PASS -d… 186 …WD/openssl.cnf.tmp -batch -sha256 -new -newkey rsa:2048 -nodes -out server.csr -keyout server.key … 187 …WD/openssl.cnf.tmp -batch -sha256 -new -newkey rsa:2048 -nodes -out server.csr -keyout server.key … [all …]
|
D | clean.sh | 4 rm -f $i.csr $i.key $i.pem
|
/hostap-3.7.0/src/crypto/ |
D | crypto_mbedtls_alt.c | 3304 mbedtls_x509write_csr *csr = os_malloc(sizeof(*csr)); in crypto_csr_init() local 3305 if (csr != NULL) in crypto_csr_init() 3306 mbedtls_x509write_csr_init(csr); in crypto_csr_init() 3307 return (struct crypto_csr *)csr; in crypto_csr_init() 3320 mbedtls_x509_csr *csr = os_malloc(sizeof(*csr)); in crypto_csr_verify() local 3321 if (csr == NULL) in crypto_csr_verify() 3323 mbedtls_x509_csr_init(csr); in crypto_csr_verify() 3326 if (mbedtls_x509_csr_parse_der(csr, wpabuf_head(req), wpabuf_len(req)) == 0 && in crypto_csr_verify() 3327 (md_info = mbedtls_md_info_from_type(csr->MBEDTLS_PRIVATE(sig_md))) != NULL && in crypto_csr_verify() 3328 mbedtls_md(md_info, csr->cri.p, csr->cri.len, digest) == 0) in crypto_csr_verify() [all …]
|
D | crypto.h | 1221 void crypto_csr_deinit(struct crypto_csr *csr); 1229 int crypto_csr_set_ec_public_key(struct crypto_csr *csr, 1239 int crypto_csr_set_name(struct crypto_csr *csr, enum crypto_csr_name type, 1251 int crypto_csr_set_attribute(struct crypto_csr *csr, enum crypto_csr_attr attr, 1262 const u8 * crypto_csr_get_attribute(struct crypto_csr *csr, 1274 struct wpabuf * crypto_csr_sign(struct crypto_csr *csr,
|
D | crypto_openssl.c | 3066 X509_REQ *csr; in crypto_csr_verify() local 3070 csr = d2i_X509_REQ(NULL, &der, wpabuf_len(req)); in crypto_csr_verify() 3071 if (!csr) in crypto_csr_verify() 3074 pkey = X509_REQ_get_pubkey((X509_REQ *)csr); in crypto_csr_verify() 3078 if (X509_REQ_verify((X509_REQ *)csr, pkey) != 1) in crypto_csr_verify() 3081 return (struct crypto_csr *)csr; in crypto_csr_verify() 3083 X509_REQ_free(csr); in crypto_csr_verify() 3088 void crypto_csr_deinit(struct crypto_csr *csr) in crypto_csr_deinit() argument 3090 X509_REQ_free((X509_REQ *)csr); in crypto_csr_deinit() 3094 int crypto_csr_set_ec_public_key(struct crypto_csr *csr, struct crypto_ec_key *key) in crypto_csr_set_ec_public_key() argument [all …]
|
/hostap-3.7.0/src/common/ |
D | dpp_crypto.c | 2055 struct crypto_csr *csr = NULL; in dpp_build_csr() local 2077 csr = crypto_csr_init(); in dpp_build_csr() 2078 if (!csr || crypto_csr_set_ec_public_key(csr, key)) in dpp_build_csr() 2081 if (name && crypto_csr_set_name(csr, CSR_NAME_CN, name)) in dpp_build_csr() 2094 crypto_csr_set_attribute(csr, CSR_ATTR_CHALLENGE_PASSWORD, in dpp_build_csr() 2111 buf = crypto_csr_sign(csr, key, hash_sign_algo); in dpp_build_csr() 2118 crypto_csr_deinit(csr); in dpp_build_csr() 2126 struct crypto_csr *csr; in dpp_validate_csr() local 2136 csr = crypto_csr_verify(csrbuf); in dpp_validate_csr() 2137 if (!csr) { in dpp_validate_csr() [all …]
|
D | dpp.c | 851 char *csr = NULL; in dpp_build_conf_req_helper() local 869 if (auth->csr) { in dpp_build_conf_req_helper() 872 csr = base64_encode_no_lf(wpabuf_head(auth->csr), in dpp_build_conf_req_helper() 873 wpabuf_len(auth->csr), &csr_len); in dpp_build_conf_req_helper() 874 if (!csr) in dpp_build_conf_req_helper() 903 if (csr) { in dpp_build_conf_req_helper() 905 json_add_string(json, "pkcs10", csr); in dpp_build_conf_req_helper() 912 os_free(csr); in dpp_build_conf_req_helper() 1317 wpabuf_free(auth->csr); in dpp_auth_deinit()
|
D | dpp.h | 357 struct wpabuf *csr; member 670 int dpp_validate_csr(struct dpp_authentication *auth, const struct wpabuf *csr);
|
D | dpp_tcp.c | 1445 wpabuf_free(auth->csr); in dpp_tcp_build_csr() 1447 auth->csr = dpp_build_csr(auth, conn->name ? conn->name : "Test"); in dpp_tcp_build_csr() 1448 if (!auth->csr) { in dpp_tcp_build_csr()
|
/hostap-3.7.0/tests/hwsim/ |
D | test_dpp.py | 6811 csr = OpenSSL.crypto.load_certificate_request(OpenSSL.crypto.FILETYPE_ASN1, 6817 cert.set_pubkey(csr.get_pubkey()) 6818 dn = csr.get_subject() 6886 csr = ev.split(' ')[2] 6887 if not csr.startswith("csr="): 6889 csr = csr[4:] 6890 csr = base64.b64decode(csr.encode()) 6891 logger.info("CSR: " + binascii.hexlify(csr).decode()) 6893 cert = dpp_sign_cert(cacert, cakey, csr) 7041 csr = ev.split(' ')[2] [all …]
|
/hostap-3.7.0/wpa_supplicant/ |
D | dpp_supplicant.c | 1649 wpabuf_free(auth->csr); in wpas_dpp_build_csr() 1651 auth->csr = dpp_build_csr(auth, wpa_s->conf->dpp_name ? in wpas_dpp_build_csr() 1653 if (!auth->csr) { in wpas_dpp_build_csr()
|