본문 바로가기

2019/0710

npcap 설치안될때 레지스트리에서 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\npcapinst 삭제 2019. 7. 30.
JCP (JsCryptoProvider) C++에서 Java의 SecurityProvider같은거 https://github.com/jc-lab/jcp 지금은 mbedtls만 지원. HAS_MBEDTLS 혹은 HAS_MBEDCRYPTO 전처리기 필요 예제 : #include #include #ifdef _DEBUG #pragma comment(lib, "mbedcryptod.lib") #pragma comment(lib, "mbedx509d.lib") #else #pragma comment(lib, "mbedcrypto.lib") #pragma comment(lib, "mbedx509.lib") #endif #include #include #include #include #include #include #include #include using namespace jcp; void printHexByt.. 2019. 7. 22.
C++ istream, streambuf 간단 구현 예제 #include class input_buf : public std::streambuf { public: char read_buf_[32]; int read_pos_; int read_limit_; input_buf() { int i; for (i = 0; i < 32; i++) { if(i < 26) read_buf_[i] = 'a' + i; else read_buf_[i] = 'A' + (i - 26); } read_pos_ = 0; read_limit_ = 32; } int_type underflow() override { // 읽을 데이터가 없으면 EOF를 알린다 int_type ret = traits_type::eof(); // istream에서 더이상 버퍼에서 읽을.. 2019. 7. 19.
AsymSecureFile (설명 추가중... github에 써야하는데...) AsymSecureFile은 Asymmetric기반 암호화를 이용하여 데이터 Sign/Encrypt를 구현하는 Java 라이브러리 입니다. (추후 C++도 지원예정) OperationType으로써 SIGN과 PUBLIC_ENCRYPT를 지원하며 RSA키와 EC키를 지원하고, Java에서는 PKCS11도 지원하여 HSM과 연동 가능합니다. SIGN은 PrivateKey로 데이터를 서명하며 이를 통해 데이터를 조작불가하게 전달하고 보관할 수 있습니다. 라이센스 검증 등에 유용하게 사용할 수 있습니다. PUBLIC_ENCRYPT는 PublicKey로 데이터를 암호화하여 데이터를 안전하게 전달하고 PrivateKey를 가진 자만 해당 데이터를 읽을 수 있습니다.. 2019. 7. 12.
EJBCA SSL인증서 갱신(재발급) https://doc.primekey.com/ejbca/ejbca-operations/ejbca-operations-guide/ca-operations-guide/end-entities/ssl-certificate-expiration SSL Certificate Expiration The SSL certificate used for SSL in JBoss is stored in APPSRV_HOME/server/default/conf/keystore.jks. The default validity time for the SSL certificate is two years. doc.primekey.com 참고. 추가로 4. Copy EJBCA_HOME/p12/tomcat.jks to APPSRV_HOME/s.. 2019. 7. 10.
EJBCA Java WS API 연결 https://gist.github.com/jc-lab/773d809053184529b52a4089aab72a9e EjbcaConnector.java EjbcaConnector.java. GitHub Gist: instantly share code, notes, and snippets. gist.github.com 별건 아니구 EjbcaWS 연결할 때 인증서 검증 및 클라이언트 인증서 필요한데 Keystore파일이 아닌 KeyStore객체에서 가져오도록 한 것. 물론 좀더 수정 필요 2019. 7. 10.
반응형