Installing certificate in Google API Client Library for Java

מתוך ויקי נטפרי
גרסה מ־19:04, 11 בפברואר 2020 מאת Yzahn (שיחה | תרומות) (יצירת דף עם התוכן "To be able to use the [http://Google%20API%20Client%20Library%20for%20Java https://developers.google.com/api-client-library/java] or any other library that depen...")
(הבדל) → הגרסה הקודמת | הגרסה האחרונה (הבדל) | הגרסה הבאה ← (הבדל)
קפיצה לניווט קפיצה לחיפוש

To be able to use the https://developers.google.com/api-client-library/java or any other library that depends on it (see https://mvnrepository.com/artifact/com.google.api-client/google-api-client/usages for a partial list), it is necessary to add Netfree's root certificate to the library's embedded certificate store. The certificate store is embedded in the following file: google-api-client-X.XX.X.jar. (X.XX.X symbolizes with the version number of the file). The certificate store can be extracted using a tool for ZIP extraction. The files location within the ZIP is at the following path: com\google\api\client\googleapis\google.jks‎. After extraction, Netfree's certificate may be added using the regular methods for Java certificate stores. Note: The password is NOT the default ("changeit") but rather "notasecret". The commands should be changed appropriately. Once the certificate is added, repackage the JAR file by zipping it and changing the extension to .JAR.