首页 > 解决方案 > 只能为“hostssl”行配置 clientcert

问题描述

我正在尝试添加clientcert=1pg_hba.conf 谁能告诉我在哪里添加这个?我正在尝试将 postgres 添加为 fabric-ca 中的数据库sslmode=verify-ca

pg_hba.conf看起来像这样

# the database superuser.  If you do not trust all your local users,
# use another authentication method.


# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust clientcert=1
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     trust
host    replication     all             127.0.0.1/32            trust
host    replication     all             ::1/128                 trust

host all all all md5

标签: postgresqlhyperledger-fabrichyperledgerhyperledger-fabric-ca

解决方案


推荐阅读