SSL 적용을 위한 인증서 생성 및 tomcat 설정

서버/Tomcat 2013. 6. 26. 14:37

인증서를 생성하려면 JAVA가 설치된 경로의 bin 디렉토리로 이동해서 keytool 을 실행한다.


CD C:\Program Files\Java\jdk1.6.0_43\bin\


keytool -genkey -keyalg RSA -validity 3650


RSA 암호방식으로 유효기간이 3650일로 만든다.


keystore 암ㅇ화 CN, OU, O, L, ST, C 값들을 테스트용이므로 적당하게 입력한다.


사용자 디렉토리로 가면 .keystore 파일이 생성되어 있다.


tomcat 의 server.xml 파일을 찾아서


<Connector 
          port="443" maxThreads="100"
          scheme="https" secure="true" SSLEnabled="true"
          keystoreFile="${user.home}/.keystore" keystorePass="keystore 패스워드"
          clientAuth="false" sslProtocol="TLS"/>


을 수정해준다.

:

리눅스 서버에서 crontab 사용법

서버/리눅스 2013. 6. 26. 14:37

crontab -l    : 현재 등록된 crontab 내용 출력

crontab -e   : rontab 에 등록된 내용 수정

 

 

   10 3 * * 0,4 /etc/cron.d/logchecker
   10 3 * * 0   /usr/lib/newsyslog
   15 3 * * 0 /usr/lib/fs/nfs/nfsfind
   1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
   ----------   ========================
   1 2 3 4 5           program
 
   1 : minute (0-59),
   2 : hour (0-23),
   3 : day of the month (1-31),
   4 : month of the year (1-12),
   5 : day of the week (0-6 with 0=Sunday)


:

ShellExecute failed (2) error for Notepad++

유용한프로그램 2013. 6. 26. 14:35

Go into your registry as an administrator and search for notepad++.exe. Find the key underHKEY_CLASSES_ROOT that has an entry with the Edit with Notepad++ and delete the whole key. Right click and you should see that you no longer have that option.

Now we re-create it:

  1. Go to:

    HKEY_CLASSES_ROOT\*\shell
    
  2. Create a new key under shell called OpenWithNotepad and create a subkey under that calledcommand.

  3. In the OpenWithNotepad key the default string is what you want the context menu item to be called. I set it to Open with Notepad++.

  4. Create a new string value called icon and set the value to be the full path to notepad++.exe.

  5. Under the command key edit the default string value and change it to "path-to-notepad++.exe" "%1" where path-to-notepad++.exe should be the full path, e.g.

    C:\Program Files\Notepad++\notepad++.exe.


: