Fixed issues with creating cisco cert.
FossilOrigin-Name: 16ebea6ee7650a6f9f11cb31fc94683c1e2eb57a0762b37613599dcac28ae14d
This commit is contained in:
parent
dde5af6ffc
commit
85fa7955e1
@ -190,6 +190,9 @@ static int wtpman_establish_dtls(void *arg)
|
|||||||
|
|
||||||
/* try to accept the connection */
|
/* try to accept the connection */
|
||||||
if (!dtls_accept(wtpman->conn)) {
|
if (!dtls_accept(wtpman->conn)) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cw_dbg(DBG_DTLS, "Error establishing DTLS session with %s", CLIENT_IP);
|
cw_dbg(DBG_DTLS, "Error establishing DTLS session with %s", CLIENT_IP);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -198,6 +201,7 @@ static int wtpman_establish_dtls(void *arg)
|
|||||||
dtls_get_cipher(wtpman->conn));
|
dtls_get_cipher(wtpman->conn));
|
||||||
/* DTLS handshake done */
|
/* DTLS handshake done */
|
||||||
|
|
||||||
|
/*
|
||||||
int cert_len;
|
int cert_len;
|
||||||
struct dtls_ssl_cert cert;
|
struct dtls_ssl_cert cert;
|
||||||
|
|
||||||
@ -206,9 +210,11 @@ static int wtpman_establish_dtls(void *arg)
|
|||||||
|
|
||||||
cert = dtls_get_peers_cert(wtpman->conn, 0);
|
cert = dtls_get_peers_cert(wtpman->conn, 0);
|
||||||
|
|
||||||
// printf("Have Peers Cert: %p, %d\n", cert.data, cert.size);
|
printf("Have Peers Cert: %p, %d\n", cert.data, cert.size);
|
||||||
// fwrite(cert.data, 1, cert.size, f);
|
fwrite(cert.data, 1, cert.size, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -31,7 +31,7 @@ Creating SSL certificates to test AC-Tube and it's WTP's
|
|||||||
on Cisco's AP must be at least 7.3.
|
on Cisco's AP must be at least 7.3.
|
||||||
|
|
||||||
EXAMPLE:
|
EXAMPLE:
|
||||||
./mkcert ac-cisco cisco-ap
|
./mkcert.sh ac-cisco cisco-ap
|
||||||
will create the files ./certs/ac-cisco.pem and and ./certs/ac-cisco.key
|
will create the files ./certs/ac-cisco.pem and and ./certs/ac-cisco.key
|
||||||
|
|
||||||
On a Cisco AP you might have to reset the config over terminal,
|
On a Cisco AP you might have to reset the config over terminal,
|
||||||
|
@ -38,7 +38,7 @@ createcert()
|
|||||||
-subj "$SUBJ"
|
-subj "$SUBJ"
|
||||||
|
|
||||||
|
|
||||||
$OPENSSL ca -config openssl-crt.cnf \
|
$OPENSSL ca -config openssl.cnf \
|
||||||
-keyfile $INT_CA_DIR/${PREF}int-ca.key \
|
-keyfile $INT_CA_DIR/${PREF}int-ca.key \
|
||||||
-cert $INT_CA_DIR/${PREF}int-ca.crt \
|
-cert $INT_CA_DIR/${PREF}int-ca.crt \
|
||||||
-batch \
|
-batch \
|
||||||
|
Loading…
Reference in New Issue
Block a user