postgresql - 只能为“hostssl”行配置 clientcert
问题描述
我正在尝试添加clientcert=1
,pg_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
解决方案
推荐阅读
- angular - 如何在初始化反应角度形式时根据另一个表单控件的值禁用表单控件?
- java - Spring data jpa like query 兼容 Oracle 和 Postgres
- google-sheets - 如何解决有关数据验证的谷歌电子表格上的这个无效错误
- webrtc - webrtc peerconnection状态的实现与标准不一致
- unix - unix 中使用的比较运算符“==”在成功时未运行所需的条件
- python - “十进制”类型的对象不是 JSON 可序列化的
- angular - Ngrx-Component / VSCode - 嵌入式模板上的任何指令都没有使用属性绑定ngrxLet
- c++ - C++ 应用程序由于未知原因而崩溃?
- json - 在 JOLT 中验证和转换数组对象
- android - Android中使用JSON数据但没有页码作为API参数的分页