Background Image

FORUM

조회 수 120 추천 수 0 댓글 9
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Window7 32bit, Linux 64bit 등
CUBRID Ver.
[cubrid_rel] 수행 결과
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
java, php, odbc 등 입력


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
안녕하세요. 

 

큐브리드 11버전, java 8버전 사용중입니다.

 

오류내용:The server selected protocol version TLS10 is not accepted by client prefernces[TLS13, TLS12]

 

위의 오류 발생하여 java.security 파일을 수정하여 기동하였는데도 동일한 에러가 발생합니다.

 

해서 검색하여보니 Redhat 8 버전부터는 TLS1.0, TLS1.1을 기본적으로 지원하지 않는 정책으로 수정된 것으로 보입니다.

 

이런 경우에는 os의 보안 정책 수정 외에 다른 해결 방법이 있을까요?

 

  • ?
    큐브리드_김주현 2024.01.31 09:04
    큐브리드를 이용해주셔 감사합니다.

    어떻게 하셨을때 오류가 발생하는지 추가로 작성 부탁드립니다.
    $CUBRID/cubrid.conf,$CUBRID/cubrid_broker.conf 와 재현 시나리오, CUBRID버전 (patch버전까지 ::: $>cubrid_rel), 사용하시는OS, 기본제공인 java.security에서 어디를 수정하셨는지 알려주시면 추가 확인해 보도록 하겠습니다.

    감사합니다
  • ?
    11시38분 2024.01.31 16:22

    -----------------------cubrid.conf
    #
    # Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
    #
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; version 2 of the License.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
    #

    # For complete information on parameters, see the CUBRID
    # Database Administration Guide chapter on System Parameters

    # cubrid.conf

    # Service section - a section for 'cubrid service' command
    [service]

    # The list of processes to be started automatically by 'cubrid service start' command
    # Any combinations are available with server, broker, manager and heartbeat.
    service=server,broker,manager

    # The list of database servers in all by 'cubrid service start' command.
    # This property is effective only when the above 'service' property contains 'server' keyword.
    #server=foo,bar

    # Common section - properties for all databases
    # This section will be applied before other database specific sections.
    [common]

    # Read the manual for detailed description of system parameters
    # Manual > Performance Tuning > Database Server Configuration > Default Parameters

    # Size of data buffer are using K, M, G, T unit
    data_buffer_size=512M

    # Size of log buffer are using K, M, G, T unit
    log_buffer_size=256M

    # Size of sort buffer are using K, M, G, T unit
    # The sort buffer should be allocated per thread.
    # So, the max size of the sort buffer is sort_buffer_size * max_clients.
    sort_buffer_size=2M

    # The maximum number of concurrent client connections the server will accept.
    # This value also means the total # of concurrent transactions.
    max_clients=100

    # TCP port id for the CUBRID programs (used by all clients).
    cubrid_port_id=1523

    # The createdb and addvoldb create a volume file of 'db_volume_size' size
    # if don't have any options about size.
    db_volume_size=512M

    # The createdb creates a log volume file of 'log_volume_size' size
    # if don't have any options about size.
    log_volume_size=512M

    # The log_max_archives parameter configures the maximum number of archive log files kept.
    # To completely recover the database from the media failures with a backup,
    # the archive log volumes that was archived from the backup must be kept.
    # Tune this parameter with the enough number of archive logs to cope with a media failure.
    #
    # log_max_archives=2147483647
    log_max_archives=0


    #kwlee 190611
    communication_histogram=yes


    java_stored_procedure=yes

    error_log_level=WARNING

    ---------------------------------------------------cubrid_broker.conf

    #
    # Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
    #
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; version 2 of the License.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
    #

    [broker]
    MASTER_SHM_ID =30001
    ADMIN_LOG_FILE =log/broker/cubrid_broker.log

    [%query_editor]
    SERVICE =ON
    BROKER_PORT =30000
    MIN_NUM_APPL_SERVER =5
    MAX_NUM_APPL_SERVER =40
    APPL_SERVER_SHM_ID =30000
    LOG_DIR =log/broker/sql_log
    ERROR_LOG_DIR =log/broker/error_log
    SQL_LOG =ON
    TIME_TO_KILL =120
    SESSION_TIMEOUT =300
    KEEP_CONNECTION =AUTO
    CCI_DEFAULT_AUTOCOMMIT =ON

    [%BROKER1]
    SERVICE =ON
    BROKER_PORT =33000
    MIN_NUM_APPL_SERVER =5
    MAX_NUM_APPL_SERVER =40
    APPL_SERVER_SHM_ID =33000
    LOG_DIR =log/broker/sql_log
    ERROR_LOG_DIR =log/broker/error_log
    SQL_LOG =ON
    TIME_TO_KILL =120
    SESSION_TIMEOUT =300
    KEEP_CONNECTION =AUTO
    CCI_DEFAULT_AUTOCOMMIT =ON

    java로 cm_api를 사용하여 큐브리드 매니저에 로그인하려고 하는데 javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12] 에러가 발생합니다.
    큐브리드 버전 : CUBRID 10.1 (10.1.2.7694-64632b2) (64bit release build for Linux)
    DB서버의 os 버전 : CentOS Linux release 7.5.1804 (Core)
    java를 실행한 서버: CentOS Linux release 8.2.2004 (Core)입니다.
    java 실행 서버의 java.security 파일에서는 jdk.tls.disabledAlgorithms= 내용 중 TLSv1.0,TLSv1.1를 제거하였습니다.

  • ?
    hwanyseo 2024.02.01 16:56
    Test OS : CentOS Linux release 8.5.2111, CentOS Stream Release 8
    Test JDK : OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10), OpenJDK Runtime Environment (build 1.8.0_342-b07)

    위와 같이 Centos 두 가지 버전에서 Java로 cm_api 테스트 시 (java cm_api 테스트 프로그램, CM Tool 동작 확인) 정상적으로 동작 됨을 확인 하였습니다.
    실제 Java 프로그램 실행 시 security 설정이 정상적으로 수정 된 JDK 사용하였는지
    사용하시는 실행 환경에 따라 JAVA_HOME 또는 개발 프로그램 JDK 설정 등을 다시 확인 부탁 드립니다.
  • ?
    11시38분 2024.02.02 11:41

    네. 정상적으로 수정하였고 설정도 정상인 상태입니다. 해당 JAVA 실행 os의 update-crypto-policies 를 LEGACY로 설정하면 동작은 되는데, 보안 레벨을 낮추기는 어려운 상태라, 다른 방법이 필요한 상태라서요. 큐브리드 매니저는 TLSv1.0 을 쓴다고 들었는데, 해당 내용이 맞을까요?

  • ?
    hwanyseo 2024.02.02 15:18
    네 맞습니다.큐브리드매니저 서버는 현재 TSL1.0을 사용하고 있습니다.
    LEGACY 설정에서만 동작 된다고 하시니 JAVA 개발 환경 문제는 아니겠네요.
    참고로 실제 머신은 아니지만 제가 테스트해 본 Docker와 VB 에서는 Default 설정에서 정상동작 되고 있는데
    어떤 또 다른 환경 차이 있는지 생각해 보아야 할 거 같습니다.
  • ?
    11시38분 2024.02.13 14:40

    매니저 서버가 TLSv1.0이 아닌 TLSv1.1 이상의 버전을 사용하도록 설정하는 방법은 없을까요?

  • ?
    11시38분 2024.02.13 17:59

    또한 저도 Docker에 centos8 을 실행 후 테스트해보았는데 동일한 현상이 발생합니다.

    docker pull centos:latest
    os 버전 : CentOS Linux release 8.4.2105

    여기서 curl -k -X POST "https://192.168.0.127:8001/cm_api" -H "Accept: Text/plain;charset=utf-8" -d "{\"task\":\"login\", \"id\":\"admin\", \"password\":\"cub1234\", \"clientver\":\"8.4\"}"
    명령어 실행 시 다음과 같은 에러가 발생합니다.

    curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

  • ?
    kisoo 2024.02.20 16:30
    - 매니저 서버의 TLS version은 기본적으로 CM과의 연결성을 고려한 것입니다.
    - TLSv1.2로의 설정은 가능하고 이 경우 cub_manager의 binary 교체만으로 가능할 것 같습니다.
    - 문제는 CA/CM과의 TLS version 호환성을 같이 일치 시켜야 한다는 점입니다.
  • ?
    11시38분 2024.02.20 17:04
    네, 확인 감사합니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 CUBRID 사용자를 위한 DBeaver 도구 출시 안내 admin 2024.04.23 125
공지 SQLGate for CUBRID 영구 무료 라이선스 제공 file admin 2020.04.09 4476
3983 instr 함수 문의 1 secret 최범규 2017.04.13 6
3982 cubrid insert 도중 에러가 발생하여 문의드립니다. 1 secret 안산혀눙이 2017.07.10 6
3981 외래키가 있을때 선택조회 안되는 부분 문의 1 secret 최범규 2017.03.31 6
3980 사용자별 데이터 권한? 1 secret 라면 2016.04.05 6
3979 Oracle->Cubrid 시 인덱스가 중복되었습니다. 라는 오류가 납니다. 2 secret 바퀴벌레 2016.03.07 6
3978 ORACLE DB LINK 문의 1 secret MJHan 2012.10.24 6
3977 R1.4 -> R2.2 마이그레이션 중 스키마 로드 에러 2 secret 노랑배 2011.12.20 7
3976 mysql에서 이전에 관한 질문입니다. 1 secret 원설휘 2011.02.01 7
3975 cubrid 6.6.0 제공 문의 1 secret 이종욱 2010.01.25 7
3974 DB 페이지 스페이스 늘이는 방법 문의입니다. 1 secret 재홍 2009.07.29 7
3973 엑셀파일로 데이터 입력 시 오류 1 secret 로우121 2015.04.04 7
3972 jsp 커넥션 문의합니다. 1 secret 사용자3 2014.12.15 7
3971 8.2.2 버젼 PHP 트랜잭션관련 문의드립니다. 2 secret 반짝이 2014.06.11 7
3970 erwin 스키마로 xml 내보내기에 오류가 발생합니다. 1 secret 아워나 2014.02.18 7
3969 실행시 오류 2 secret 반갑습니다 2013.04.10 7
3968 리눅스 root 설치 문의 입니다. 1 secret kikimans 2014.08.21 7
3967 운용중인 서버에 신규 레플리카노드 추가방법문의드립니다. 1 secret 나라보자 2016.04.19 7
3966 NUMBER(38,2) 타입에 '12.34'를 입력하면 반올림되어 13으로 저장됩니다. 1 secret 달빛추격자 2014.03.28 7
3965 [emerg] 629#0 큐브리드 서비스 시작안됨 3 secret chocob 2014.10.13 7
3964 버전에 따른 statdump 사용 2 secret 오니오니 2013.11.22 7
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 201 Next
/ 201

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales