Showing posts with label Công nghệ. Show all posts
Showing posts with label Công nghệ. Show all posts

Fix lỗi Unable to Connect to SSL Services due to PKIX Path Building Failed

Leave a Comment

Fix lỗi Unable to Connect to SSL Services due to PKIX Path Building Failed

Gửi mail hay đọc mail inbox Java thường sẽ gặp lỗi Unable to Connect to SSL Services due to PKIX Path Building Failed

Dưới đây là cách khắc phục :D

Problem - tại sao bị thế!
Attempting to access applications that are encrypted with SSL (for example HTTPS, LDAPS, IMAPS) throws an exception and the connection is refused. This can happen when attempting to establish a secure connection to any of the following:
  • Active Directory server
  • Mail server 
  • Another Atlassian application using Application Links
For example, the following error appears in the UI when Using the JIRA Issues Macro:
1
Error rendering macro: java.io.IOException: Could not download: https://siteURL/jira/secure/IssueNavigator.jspa?view=rss&&type=12&type=4&type=3&pid=10081&resolution=1&fixfor=10348&sorter/field=issuekey&sorter/order=DESC&sorter/field=priority&sorter/order=DESC&tempMax=100&reset=true&decorator=none
While the following appears in the logs:
1
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)

========= Solve - giải quyết làm theo từng bước nhé ========

Chi tiết cách dễ nhất:

Obtain and Import the Server's Public Certificate

  1. Download and install the Portecle 
  2. Ensure the <JAVA_HOME> variable is pointing to the same version of Java that your application uses. See our Setting JAVA_HOME docs for further information on this.
    (info) If running on a Linux/UNIX server, X11 will need to be forwarded when connecting to the server (so you can use the GUI), as below:
    1
    ssh -X user@server
  3. Select the Examine menu and then click Examine SSL/TLS Connection:
  4. Enter the SSL Host and Port of the target system:
  5. Wait for it to load, then select the public certificate and click on PEM:
  6. Export the certificate and save it.
  7. Go back to the main screen and select the Open an existing keystore from disk option, select cacerts (for example $JAVA_HOME/lib/security/cacertsthen enter the password (pass mặc định (the default) là changeit).
  8. Select the Import a trusted certificate into the loaded keystore button:
  9. Select the certificate that was saved in step 6 and confirm that you trust it, giving it an appropriate alias (e.g.: confluence).
    1. You may hit this error: 
    2. If so, hit OK, and then accept the certificate as trusted.
  10. Save the Key Store to disk:
  11. Restart your application.
  12. Test that you can connect to the host. GOOK LUCKY!
Cách khác nếu trên thất bại

Add SSL Certificates automatically!
Kiểm tra và dùng 1 trong các cách dưới đây !
  1. Make sure you have imported the public certificate of the target instance into the truststore according to the Connecting to SSL Services instructions.
  2. Make sure any certificates have been imported into the correct truststore; you may have multiple JRE/JDKs. See Installing Java for this.
  3. Check to see that the correct truststore is in use. If -Djavax.net.ssl.trustStore has been configured, it will override the location of the default truststore, which will need to be checked.
  4. Check if your Anti Virus tool has "SSL Scanning" blocking SSL/TLS. If it does, disable this feature or set exceptions for the target addresses (check the product documentation to see if this is possible).
  5. If connecting to a mail server, such as Exchange, ensure authentication allows plain text.
  6. Verify that the target server is configured to serve SSL correctly. This can be done with the SSL Server Test tool.

Source: confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html
Xem Tiếp

Cách khắc phục không chạy được hàm ajax trên chrome coccoc

Leave a Comment

Cách khắc phục không chạy được hàm ajax trên chrome coccoc

jQuery .load() not working in Chrome Coccoc

Cách khắc phục không chạy được hàm load() của jquery trên chrome coccoc

Bị lỗi trên có thể do vấn đề bảo mật của Chrome
Trong hình ảnh có thể có: văn bản
Cách fix đơn giản 3 bước áp dụng cho chrome và cococ:
1 Ở Desktop, nhấn chuột phải vào icon chrome hay coccoc -> Properties
2 Mục Target có dạng  ...\Browser\Application\browser.exe3 Ta thêm --allow-file-access-from-files vào cuối dòng đó -> Apply -> OK
Tức sau khi xong sẽ có dạng: ...\Browser\Application\browser.exe --allow-file-access-from-files
Nếu dòng trên (bước 3) vẫn không được thì thay dòng này: --disable-web-security
Xem Tiếp

Tìm driver cho laptop khi không biết chính xác phần cứng của máy

Leave a Comment

Tìm driver cho laptop khi không biết chính xác phần cứng của máy

Khi cài lại HĐH cho laptop bạn thường xuyên gặp nhiều Unknown Device hoặc các PCI Device không có driver (được windows đánh dấu hình tam giác vàng có dấu than), phiền phức là laptop kiếm driver rất khó mà hấu hết các website support của các hãng driver lớp thì thiếu, không tương thích, lớp thì option tùm lum (một loại phần cứng có quá nhiều tùy chọn driver... VD: cũng 1 mã máy nhưng card WIFI có nhiều option như Atheros hay Broadcom...) Bài viết này hướng dẫn bạn biết chính xác máy laptop của mình đang dùng phần cứng gì để cài đúng driver hoặc search driver trên google để cài đặt.

[​IMG]

Phương pháp này chủ yếu dựa vào thông số VEN và DEV IDs của thiết bị Unknown Device từ 2 giá trị này bạn sẽ biết phần cứng này do hãng nào SX và dòng sản phẩm cụ thể của hãng đó.

Vậy VEN và DEV IDs là gì?
VEN là Vendor ID (mã của nhà Sản xuất. VD: NVIDIA, AMD, Intel...) DEV là Device ID (mã thiết bị. VD: geforce GTX750M...). Để biết được 2 giá trị này bạn cần phải Properties thiết bị cần cài đặt driver và check Device Instance path hoặc Hardware Ids.


Cách xem VEN và DEV IDs!
  1. Nhấn chuột phải vào thiết bị đang bị thiếu driver
  2. Chọn Properties
  3. Chọn tab Details
  4. Trong khung Property tìm vào chọn vào Device Instance Path (Windows 7 và Vista) hoặc là Device Instance ID (cho Windows XP)
  5. Tìm những giá trị đằng sau VEN_ và DEV_ => VEN_**** and DEV_****
[​IMG]
Trong TH này Vendor ID là 197B, và Device ID là 2382.​

Có VEN và DEV IDs rồi làm sao để biết đó là hãng và thiết bị nào?
Truy cập website http://PCIdatabase.com 1 website lưu trữ các mã VEN và DEV để ta có thể truy cứu

[​IMG]
PCIdatabase cho phép tìm kiếm Vendor và Device Search thông qua việc nhập IDs tương ứng vào khung Vendor Search hoặc Device Search.​

Vendor Search
1. nhập VEN ID (VD: 197B) vào khung Vendor Search
[​IMG]

2. Click Search
[​IMG]
3. Kết quả trả về là JMicron
4. Nhấn vào tên hãng vendor website còn cho phép bạn biết 1 số thông tin về hãng này và website, nơi down driver (chỉ tham khảo thôi chứ thường phải google chính xác tên của thiết bị)
[​IMG]
5. Bên dưới Website sẽ liệt kê một loạt các DEV_IDs tương ứng của VEN_IDs mà bạn nhập vào, bạn có thể dùng chức năng tìm kiếm (Ctrl + f) của trình duyệt để tìm đến đúng DEV_IDs của thiết bị cần cài driver. VD TH này DEV_IDs là 2382 (đầu đọc thẻ nhớ)
[​IMG]

Tương tự nếu như bạn dùng Device Search
Trong 1 vài TH, Device IDs có thể bị trùng với 1 số hãng SX, vì vậy bạn có thể kiểm tra chéo bằng cách dò xem ứng với mã DEV_IDs (2382) có đúng là của Jmicron hay không?

1. từ trang chủ pcidatabase.com nhập DEV ID (2382) vào khung Device Search
[​IMG]
2. Click Search
3. Như đã nói ở trên ứng với 1 mã DEV_IDs có thể cho ra nhiều KQ nhà SX khác nhau, vì vậy search chéo bằng DEV_IDs để kiểm tra xem VEN_IDs có đúng lá 197B hay không.
[​IMG]

TH này cho thấy thiết bị cần cài đặt đúng là thẻ nhớ của Jmicron, hãy tìm đúng driver và cài cho chiếc laptop của bạn nhé.
nguồn: amtech.vn/threads/huong-dan-cach-tim-driver-cho-laptop-khi-khong-biet-chinh-xac-phan-cung-cua-may.256200/
Xem Tiếp