Hello.
I start OCSP server for testing. I use command:
openssl ocsp -index index.txt -port 7777 -rkey ocsp_resp_pkey.pem -rsigner
ocsp_resp_cert.crt -CA cacert.crt –text
After I got the message “Waiting for OCSP client connections...” I see that
process openssl.exe listen only TCPv6 port
7777, no TCPv4.
That’s why when I try to connect to OCSP responder on 127.0.0.1:7777
BIO_do_connect returns errors:
2992:error:0200274D:system
library:connect:reason(1869):.\crypto\bio\bss_conn.c:269:host=127.0.0.1:7777
2992:error:20073067:BIO routines:CONN_STATE:connect
error:.\crypto\bio\bss_conn.c:273:
My code is:
conn = BIO_new_connect(host);
if (!conn)
{
result=-6;
goto l_fr;
}
int port_int=atoi(port);
BIO_set_conn_int_port(conn, &port_int);
if (BIO_do_connect(conn) <= 0)
{
result=-7;
ERR_print_errors(bf_log); //here we print errors
goto l_fr;
}
How to set up OCSP responder to handle IPv4-connections? Or the only way is to
use manually IPv6-connection to the
OpenSSL OCSP responder?
Regards,
Vladimir.