Lines Matching refs:cert
236 setup_ctx(char* key, char* cert)
247 if(!SSL_CTX_use_certificate_chain_file(ctx, cert)) {
250 print_exit("cannot read cert");
272 if(!SSL_CTX_load_verify_locations(ctx, cert, NULL))
273 print_exit("cannot load cert verify locations");
581 do_service(char* addr, int port, char* key, char* cert)
583 SSL_CTX* sslctx = setup_ctx(key, cert);
623 char* addr = "127.0.0.1", *key = "petal.key", *cert = "petal.pem";
638 cert = optarg;
684 do_service(addr, port, key, cert);