반응형
OpenLDAP SSL(cert) 적용 시 에러
certs.ldif 생성
$ vim certs.ldif
dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/openldap/certs/sangchul_kr_cert.pem
dn: cn=config
changetype: modify
replace: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/openldap/certs/sangchul_kr_key.pem
에러
ldap_modify: Other (e.g., implementation specific) error (80)
$ ldapmodify -Y EXTERNAL -H ldapi:/// -vvv -f certs.ldif
ldap_initialize( ldapi:///??base )
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
replace olcTLSCertificateFile:
/etc/openldap/certs/sangchul_kr_cert.pem
modifying entry "cn=config"
ldap_modify: Other (e.g., implementation specific) error (80)
문제 해결을 위해서 키 순서를 변경합니다.
순서 : Key File, Certificate File
certs.ldif 편집
$ vim certs.ldif
dn: cn=config
changetype: modify
replace: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/openldap/certs/sangchul_kr_key.pem
dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/openldap/certs/sangchul_kr_cert.pem
$ ldapmodify -Y EXTERNAL -H ldapi:/// -vvv -f certs.ldif
ldap_initialize( ldapi:///??base )
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
replace olcTLSCertificateKeyFile:
/etc/openldap/certs/sangchul_kr_key.pem
modifying entry "cn=config"
modify complete
replace olcTLSCertificateFile:
/etc/openldap/certs/sangchul_kr_cert.pem
modifying entry "cn=config"
modify complete
728x90
반응형
'리눅스' 카테고리의 다른 글
rsync 명령어 (0) | 2021.07.01 |
---|---|
NFS: Stale file handle 에러 (0) | 2021.07.01 |
Zabbix 로그 파일 시간 형식(Log time format) (0) | 2021.06.24 |
[LDAP] OpenLDAP sudo 스키마 설정 (0) | 2021.06.22 |
OpenSSL을 사용하여 자체 서명된 SSL 인증서와 개인 키를 생성하는 방법(openssl) (0) | 2021.06.22 |