Error validating server certificate 에러를 뱉으며 svn이 접속이 되지 않는다. 

tortoies 사용하는데 해당 서버는 계속 접속이 되지 않는다.

web에서는 잘 접속된다. 


이럴경우 

eclipse, tortoies 에서 해당 svn 인증이 실패하므로 저장된 ssl을 날려버리고 핑거프린트를 다시 한다.

mac이나 linux는 ssl 인증이 저장 된걸 날려버리면 해결이 되지만 windows 의 경우 그 경로가 어딘지 알 수 없다. 

windows7 기준으로 설명.


실행 > %APPDATA%\Subversion\auth 으로 이동> svn.ssl.server 디렉토리 삭제. 


아래는 참조.

https://kthoms.wordpress.com/2011/03/17/fixing-subversion-problem-error-validating-server-certificate/

Fixing subversion problem “Error validating server certificate”

I have faced the annoying problem that for unknown reasons I got a security exception when accessing the subversion repository for one of my Google Code projects. This used to work before, but maybe the server has been changed. However, if the certificate is not trusted subversion will ask you whether you trust the certificate and if you want to add this certifacte.

svn info https://svn.codespot.com/a/eclipselabs.org/xtext-utils/subprojects/unittesting/branches
Error validating server certificate for 'https://svn.codespot.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.googlecode.com
 - Valid: from Wed, 16 Feb 2011 00:27:28 GMT until Thu, 16 Feb 2012 00:37:28 GMT
 - Issuer: Google Inc, US
 - Fingerprint: 34:4b:90:e7:e3:36:81:0d:52:1f:10:c0:4c:98:66:90:4a:9e:05:c9
(R)eject, accept (t)emporarily or accept (p)ermanently?

The problem now is that even if I entered the “p” option the next time I access SVN the same exception occurs again.

My issue was solved now by cleaning the directory “~/.subversion/auth/svn.ssl.server”.

 rm ~/.subversion/auth/svn.ssl.server/*



http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug.html

Authentication

If the repository that you are trying to access is password protected, an authentication Dialog will show up.

Figure 4.5. Authentication Dialog

Authentication Dialog


Enter your username and password. The checkbox will make TortoiseSVN store the credentials in Subversion's default directory:%APPDATA%\Subversion\auth in three subdirectories:

  • svn.simple contains credentials for basic authentication (username/password). Note that passwords are stored using the WinCrypt API, not in plain text form.

  • svn.ssl.server contains SSL server certificates.

  • svn.username contains credentials for username-only authentication (no password needed).

If you want to clear the authentication cache for all servers, you can do so from the Saved Data page of TortoiseSVN's settings dialog. That button will clear all cached authentication data from the Subversion auth directories, as well as any authentication data stored in the registry by earlier versions of TortoiseSVN. Refer to the section called “Saved Data Settings”.

If you want to clear authentication for one realm only then you will have to dig into those directories, find the file which contains the information you want to clear and delete the file.

Some people like to have the authentication data deleted when they log off Windows, or on shutdown. The way to do that is to use a shutdown script to delete the %APPDATA%\Subversion\auth directory, e.g.

@echo off
rmdir /s /q "%APPDATA%\Subversion\auth"

You can find a description of how to install such scripts at http://www.windows-help-central.com/windows-shutdown-script.html .

For more information on how to set up your server for authentication and access control, refer to the section called “Accessing the Repository”.

'WINDOWS' 카테고리의 다른 글

windows7 우클릭 반응속도 느릴때  (0) 2016.11.25
windows의 cpu 성능 모니터링  (0) 2014.10.08
http를 이용한 ping 테스트  (0) 2014.06.12
Posted by 마법수정화살
,

웹페이지에서 백스페이스를 누르면 뒤로가기 가 되는데 

에디터를 이용해 글을 작성하는 중 포커스가 이동 되어 백스페이스를 누르면 

저장되지 않고 뒤로가기가 되어 작성중인 글을 날리는 경우가 있어 해당 기능을 막아달라는 고객의 요청이 있었습니다. 


코드를 수정하면 적용이 까다롭기 때문에 웬만하면 플러그인이나 설정을 통해 하려고 하였으나 

바람직 하지 않은것 같아 검색을 해보니 대부분 javascript 코드로 막는것 같았습니다. 


jquery 예제는 많지만 prototype 예제가 없어 테스트를 통해 예제를 만들었습니다.


        //prevent backspace key
         if( event.keyCode == 8) {
             // with no field focused, the target will be HTMLBodyElement
            if( event.currentTarget == document) {
               // stop this event from propagating further which prevents                     
               // the browser from doing the 'back' action
               if(event.target.nodeName == "INPUT" ||
                  event.target.nodeName == "TEXTAREA")
               {
                   
               }
               else
               {
                    return false;
               }
            }
          }

event는 event를 받은 변수명.
event.target.nodeName 은 이벤트를 발생시킨 객체의 <input><textarea> 와 같은 element이름 으로 보임. 

이 스크립트를 모든 페이지에 추가해야 backspace를 제대로 막을 수 있습니다. 

끝. 


Posted by 마법수정화살
,

오랫동안 블로그(지식습득)을 소흘히 한것을 반성합니다.

이 글은 jenkins plugin을 통해 빌드결과로 메일을 발송하려고 하였으나 뜻대로 되지 않았던 분들께 바칩니다. 

jenkins 1.597 버전에서 테스트한 내용임을 알려드립니다.


jenkins 플러그인은 친절하지 않습니다. (안 그런 것도 있지만)

실패해도 로그를 보고 원인을 찾기가 쉽지 않습니다. 


1. Email-ext plugin을 설치 합니다. 

jenkins관리 > 플러그인관리 > 설치가능탭 > mail-ext plugin 설치. 


2. 플러그인 설정.

jenkins관리 > 환경설정 >  Extended E-mail Notification

강조한 부분은 모두 필수 입력이라고 생각하면 됩니다. 6번 빼고

1. SMTP server 

- smtp server ip 를 넣습니다.

   기본 25 port를 사용하는 것 같으며 인증이 필요하거나 ssl을 사용할 경우 고급을 눌러 설정을 할수 있습니다. 

2. System Admin Email Address

- 메일이 발송될때 보낸사람(시스템)의 메일주소, 없으면 메일이 발송되지 않으므로 주의.

3. jenkins URL

- 메일 발송시 빌드 url을 보낼때 사용할 jenkins 접속 url 127.0.0.1로 되어 있으면 다른곳에서 접속 할수 있도록 수정

4. Default Recipients 

- 기본 받는사람 설정. 이 설정이 없고 job에 플러그인 설정에서 따로 받는사람이 설정되지 않으면 메일 발송 실패.

5.Default Subject, Default Contents

- 이 설정은 JENKINS_HOME 디렉토리 아래 hudson.plugins.emailext.ExtendedEmailPublisher.xml 에 있는 내용임.

   메일 제목과 내용을 jenkins에서 제공한 템플릿을 통해 만들 수 있다.

6. Enable Debug Mode

- 체크하면 뭔가 더 자세한 정보를 주겠죠?


3. job 설정 

jenkins job 설정 > 환경설정 

1. 빌드후 조치 추가 > Editable Email Notification 선택

1. Project Recipient List

- $DEFAULT_RECIPIENTS 는 환경설정의 값을 가져옴. 알림 메일을 받는사람들 설정

2. Project Reply-To List

- 답장받을 주소 (리스트 , 로 구분 )

3. Default Subject

4. Default Contents

- Default 값은 환경설정에서 설정된 값을 사용한다, job에 맞도록 메세지를 설정한다. 

5. Attach Build Log

- 체크시 발송되는 메일에 빌드 log 를 첨부해 주는 기능 

6. Trigger

- 빌드 상태에 따라 설정을 할수 있는 기능 : 꼭 선택해야 한다.

- 여러가지 상태가 있는데 알림 받고 싶은 경우에 선택 한다. (자세한 설명은 생략합니다.ㅠ)


4. JOB을 빌드하여 설정된 트리거에 메일이 발송되는지 확인!


*SMTP 서버로 메일이 발송되지 않는다면..

메일서버확인, 방화벽 확인. dns 확인, relay 설정 확인을 해볼 필요가 있습니다~

SMTP의 장애 해결 방법 참조


* 기본으로 있는 mailer plugin은 이상하게 테스트가 안되는 것을 확인했는데 원인은 잘 모르겠습니다.

'JENKINS' 카테고리의 다른 글

windows node(slave) 로그 한글깨짐.  (0) 2014.01.07
Posted by 마법수정화살
,