json格式的提交數據需要添加:Content-Type :application/x-www-form-urlencoded,否則會導致請求失敗
1. 創建 + 測試: 創建和發送任何的HTTP請求,請求可以保存到歷史中再次執行
2. Organize: 使用Postman Collections為更有效的測試及集成工作流管理和組織APIs
3. document: 依據你創建的Clollections自動生成API文檔,並將其發布成規范的格式
4. collarorate: 通過同步連接你的team和你的api,以及權限控制,API庫
注意:如果在輸入參數時,沒有自動decode到URL中,則可以選中參數右鍵后,選擇EncodeURIComponent(一般都會自動填充的)
同樣也可以decode,將參數生成dictionary的形式(一般都會自動填充的):
有的URL中有path變量,postman可以自動提取該path變量為一個key
mutipart/form-data是網頁表單用來傳輸數據的默認格式。可以模擬填寫表單,並且提交表單。
urlencoded
同前面一樣,注意,你不能上傳文件通過這個編碼模式。
該模式和表單模式會容易混淆。urlencoded中的key-value會寫入URL,form-data模式的key-value不明顯寫入URL,而是直接提交。
raw request可以包含任何東西。所有填寫的text都會隨着請求發送。
binary
image, audio or video files.text files 。 也不能保存歷史,每次選擇文件,提交。
本地安裝的Postman 優點,比較與谷歌瀏覽器插件版本
1. Cookie 本機應用程序可讓您直接使用Cookie。與Chrome應用不同,不需要單獨的擴展。
2. 內置代理 本機應用程序附帶內置代理,可用於捕獲網絡流量。
3. 菜單欄 Chrome應用程序的菜單欄非常有限。使用本地應用程序,您可以創建集合,切換到歷史請求等等!
4. 受限標題 本地應用程序的最新版本允許您發送headers 如Origin和User-Agent。這些限制在Chrome應用程式中
5. Postman控制台 本地應用程序的最新版本還具有內置控制台,可讓您查看API調用的網絡請求詳細信息
1. Sending Requests 發送請求
postman界面分為兩個區域, 左側的工具欄和右側的請求生成器。
請求生成器允許您快速創建幾乎任何類型的請求
HTTP請求的四個部分是URL,方法,標頭和主體。
The four parts of an HTTP request are the URL, method, headers, and the body.
URL是您為請求設置的第一件事。
URL輸入字段存儲先前使用的URL,並在開始輸入URL時顯示自動完成下拉列表。
點擊URL參數按鈕將打開輸入URL參數的鍵值編輯器。(參數按鈕params)
在URL欄或鍵/值編輯器中輸入的參數不會自動進行URL編碼。
右鍵單擊所選文本,然后單擊EncodeURIComponent以手動編碼參數值。
<全選URL地址欄內容,然后右擊, 可以進行編碼和解碼操作>.
(參數按鈕params)
You can individually(單獨) add key/value pairs and Postman will combine everything together.
您可以單獨添加鍵/值對,Postman會將所有內容結合在一起。
如果您的網址已經具有參數 - 例如,如果您粘貼了其他來源的網址,Postman會將網址自動分割成對。
一些API端點使用路徑變量。你可以和Postman一起工作。
路徑變量在URL中將如下所示。它們是段的一部分(兩個斜杠之間)。
https://api.library.com/:entity/
要編輯它,請單擊參數,您將看到已經輸入的路徑變量作為鍵。您可以根據終點的需要輸入值。
例如,:entity在這種具體情況下可以是“用戶”或“會員”或“書”
======Headers ========
Clicking on the headers toggle will show the headers key-value editor .
You can set any string as the header name.
Common headers part of the HTTP spec are available
in an auto-complete drop down when you begin typing the header name.
Values for the “Content-Type” header are also available in an auto-complete drop down.
點擊標題切換將顯示標題鍵值編輯器。您可以將任何字符串設置為頭名稱。
當您開始鍵入標題名稱時,HTTP規范的公共頭文件可在自動完成下拉列表中使用。
“內容類型”標題的值也可以在自動完成的下拉列表中使用。
Restricted headers and cookies
受限的headers和Cookie
不幸的是,某些headers受Chrome和XMLHttpRequest規范限制。
以下標題被阻止:
Accept-Charset
Accept-Encoding
Access-Control-Request-Headers
Access-Control-Request-Method
Connection
Content-Length
Cookie
Cookie 2
Content-Transfer-Encoding
Date
Expect
Host
Keep-Alive
Origin
Referer
TE
Trailer
Transfer-Encoding
Upgrade
User-Agent
Via
通過點擊Postman中的Interceptor切換或通過Chrome網上應用店來安裝Interceptor擴展
安裝完成后,再次點擊該切換, 您現在可以發送使用這些標頭的請求。
客戶端版Postman,沒有限制
====Cookies========
As the packaged app runs in a sandbox separately from the browser,
it can not access cookies set inside the browser.
This restriction can also be overcome using the Interceptor extension.
Postman routes all requests through the Interceptor,
which then uses the browser context to send requests.
Cookies set inside the browser are automatically attached to your requests.
隨着打包的應用程序與瀏覽器分開運行在沙箱中,它無法訪問瀏覽器中設置的Cookie。
這個限制也可以使用Interceptor擴展來克服。
Postman通過Interceptor路由所有請求,然后使用瀏覽器上下文發送請求。
瀏覽器中設置的Cookie會自動附加到您的請求中。
攔截器啟用后,您也可以從Postman發送cookies。
只需設置“Cookie”標題,並且cookie將隨請求一起發送。
您還可以訪問返回響應時可用的Cookie。
=====Header presets==========
在header的右側 有個presets按鈕,點擊開有個 manage presets按鈕.
您可以在標題預設中將常用標題保存在一起。
您可以通過單擊“添加預設”按鈕或從標題下拉列表中選擇預設來為您的請求添加標題預置。
======Method========
Changing the method is straightforward.
Just select the method from the select control.
The request body editor area will change depending on whether the method can have a body attached to it or not.
改變方法很簡單。
只需從選擇控件中選擇該方法即可。
請求body身體編輯器區域將根據方法是否可以附加身體而改變.
添加其他方法和切換是否可以附加身體的功能將很快添加。
The ability to add additional methods and toggling whether a body can be attached to it will be added soon.
=====Request body======
While constructing requests, you would be dealing with the request body editor a lot.
Postman lets you send almost any kind of HTTP request (If you can't send something, let us know!).
The body editor is divided into 4 areas and has different controls depending on the body type.
1. form-data: 就是http請求中的multipart/form-data
multipart/form-data是Web表單用於傳輸數據的默認編碼。
這樣可以模擬在網站上填寫表單,並提交表單。
表單數據編輯器允許您為數據設置鍵/值對(使用鍵值編輯器)。
您也可以將文件附加到密鑰。
請注意,由於HTML5規范的限制,文件不會存儲在歷史記錄或集合中。
在發送請求時,您必須再次選擇該文件。
2. urlencoded未編碼
x-www-form-urlencoded:
就是application/x-www-from-urlencoded,會將表單內的數據轉換為鍵值對,比如,name=Java&age = 23
此編碼與URL參數中使用的編碼相同。
您只需要輸入鍵/值對,Postman會正確地對鍵和值進行編碼。
請注意,您無法通過此編碼模式上傳文件。
形式數據和urlencoded之間可能會有一些混淆,所以請務必先檢查一下你的API。
3. raw 未加工的
原始請求可以包含任何內容。
除了替換環境變量,Postman不會觸摸在原始編輯器中輸入的字符串。
無論您放在文本區域中是否發送請求。
原始編輯器可讓您設置格式化類型以及您應該使用原始主體發送的正確標題。
您也可以手動設置Content-Type頭。
通常,您將在此發送XML或JSON數據。
4. binary 二進制
二進制數據允許您發送無法在Postman中輸入的內容。
例如,圖像,音頻或視頻文件。
您也可以發送文本文件。
如前面在表單數據部分所述,如果要通過歷史記錄或集合加載請求,則必須重新連接文件。
2. Understanding and working with responses
理解和使用響應
Ensuring that the API response is correct is something that you will be doing a lot.
The Postman response viewer will make this task much easier for you.
The status code with the time taken for the API call is displayed next to the tabs.
You can hover over(懸停) the status code to get more details about the code.
Mostly it will be the default description as mandated(規定) by the HTTP spec but API authors can also add custom messages.
Saving responses
保存響應
If a request has been saved in a collection , you can save responses for that request.
Once the response has been received, click the “Save response” button.
You'll be able to save the response with a name.
All responses saved for a request will be available whenever you load the request (above the request URL).
Viewing responses
查看回應
The Postman body tab gives you several tools to help you make sense of things quickly.
The body can be viewed in one of three views - pretty, raw, and preview.
1. Pretty 漂亮
The pretty mode formats JSON or XML responses so that they are easier to look at.
Nobody wants to scroll through a minified single line JSON response looking for that elusive string!
Links inside the pretty mode are highlighted and clicking on them can load a GET request in Postman with the link URL.
By clicking on the line numbers on the left you can fold large chunks of the response.
For Postman to automatically format the body, make sure the appropriate Content-Type header is returned.
If the API does not do this then you can force formatting through JSON or XML.
You can enable the “Force JSON” setting as well.
Note: You can use Cmd+F / Ctrl+F to open the search bar, and Cmd+G / Ctrl+G to scroll through results.
A complete set of keyboard shortcuts can be found here.
通過點擊左側的行號,您可以折疊大塊的響應.
要使Postman自動格式化身體,請確保返回適當的Content-Type標題
2. Raw 原生的
The raw view is just a big text area with the response body.
It can help to tell whether your response is minified or not.
3. Preview
預覽
The preview tab renders the response in a sandboxed iframe.
Some web frameworks by default return HTML errors and the preview mode is especially helpful there.
Due to iframe sandbox restrictions, Javascript and images are disabled in the iframe.
You can maximize the body to occupy(使用) the whole Postman window.
In case, you plan on spending a lot of time with the response, this is the way to go.
If your API endpoint returns an image, Postman will detect and render it automatically.
For binary response types, you should select “Send and download” which will let you save the response to your hard disk.
You can then view it using the appropriate viewer.
This gives you the flexibility to test audio files, PDFs, zip files or anything that the API throws at you.
4. response返回的Headers
Headers are displayed as key/value pairs in the header tab.
Hovering over the header name can give you a description of the header according to the HTTP spec.
If you are sending a HEAD request, Postman will show the headers tab by default.
5. Cookies
Postman v0.8.x can display browser cookies as it shares the same environment with the browser.
For the packaged app, you’ll need to enable the Interceptor.
You can then view response cookies in the “Cookies” tab of the response section.
Refer to the sandbox documentation for info on how to access cookies in the pre-request/test scripts
Postman 可以顯示瀏覽器Cookie,因為它與瀏覽器共享相同的環境.
對於chrome瀏覽器的包類型的應用程序,您需要啟用攔截器Interceptor
可以在響應部分的“Cookie”選項卡中查看響應Cookie
3. Authentication helpers
認證助手(授權)
While the request editor is powerful enough to construct any kind of requests, sometimes you might need some help.
Postman has something called “helpers” which can simplify(簡化) some repetitive(重復的) and complex(復雜) tasks.
The current set of helpers let you deal with authentication protocols easily.
You can use environment variables with all helpers.
目前的助手讓您輕松處理身份驗證協議。您可以使用所有幫助器的環境變量。
You can choose to save helper data to collection requests.
This will cause the signature to be regenerated each time.
These helpers will even work in Newman!
===Basic Auth 基本認證
username
password
Update Request
Enter the username and password fields and
hit “Update Request” to generate the authorization header.
輸入用戶名和密碼字段,並點擊“更新請求”生成授權頭。
===Digest Auth 摘要認證
Digest auth is more complicated than basic auth
and
uses the values currently set in the request to generate the authorization header.
Make sure they are set properly before you generate the header.
Postman will remove the existing header if it's already present.
Digest auth比基本認證更復雜,
並使用當前在請求中設置的值來生成授權頭。
在生成標題之前,請確保它們已正確設置。
如果已經存在,Postman將刪除現有的標題。
===OAuth 1.0a (開放授權;身份驗證;開放式驗證)
Postman's OAuth helper lets you sign requests which support OAuth 1.0a based authentication.
Currently it does not let you acquire the access token.
That's something you would need from the API provider.
The OAuth 1.0 helper can set values in either the header or as query parameters.
目前不允許您獲取訪問令牌。token是.需要API提供商.
As subsequent(並發的;其次的) OAuth requests might expect a different nonce(隨機的) value,
Postman can refresh the OAuth signature just before the request is sent if auto add parameters is enabled.
隨着后續OAuth請求可能會期望不同的隨機值,
Postman可以在發送請求之前刷新OAuth簽名,如果啟用了自動添加參數。
OAuth 1.0規范相當復雜,有很多變化。
Postman盡量支持盡可能多的這些變體,但如果某些內容不適合您,
請在Github上提出問題。這些是我們包括的幾個選項:
將空參數添加到簽名 - OAuth1.0的一些實現需要將空參數添加到簽名中。
將參數添加到標題 - 如果啟用,params將添加到標題。如果沒有 - GET請求的URL參數,以及POST / PUT請求的請求體
===OAuth 2.0
Postman支持獲取OAuth 2.0(Token)令牌,並將其添加到請求中非常簡單。
要從OAuth 2.0提供程序獲取訪問令牌,請按照下列步驟操作:
1. 將https://www.getpostman.com/oauth2/callback設置為應用設置頁面中的回調URL。
2. 從API提供商獲取授權URL,訪問令牌URL,客戶端ID和客戶機密碼。
您還可以設置一些API所需的Scope參數,以設置在API中具有的訪問級別
3. 按“獲取訪問令牌”按鈕啟動OAuth 2.0流程。
如果一切都正確設置,您將被重定向到Postman服務器,
該服務器將接收您的訪問令牌並將其發送到Postman應用程序。
要完成向Postman添加令牌,請給它一個名稱,以便以后可以快速訪問。
Access tokens are stored locally and will show up in the helper list.
To add an access token to the request, click the token name.
訪問令牌存儲在本地,並將顯示在幫助列表中。
要向請求添加訪問令牌,請單擊令牌名稱。
4. Requests History 請求歷史記錄
您使用Postman發送的所有請求均存儲在您可以使用左邊欄訪問的歷史記錄中。
歷史讓您可以快速嘗試各種請求,而不用浪費時間重新形成請求。
您可以通過單擊請求名稱來加載先前的請求。
如果您在Postman上創建一個帳戶,
您的歷史記錄將與我們的服務器同步,
您將能夠檢索到跨設備,並始終備份。
同樣適用於專業用戶。
5. Using tabs to handle multiple requests
使用選項卡來處理多個請求
很多用戶可能希望同時保持多個請求的打開。
標簽功能可以讓您做到這一點。
您發送的任何請求(及其響應)都位於該選項卡的本地,
您可以切換到其他選項卡,而不會丟失第一個響應。
當您在Collection側欄中點擊保存的請求時,請求將在您打開的選項卡中打開。
但是,如果在當前選項卡中打開的請求是臟的(標簽頁中的橙色點),則新的請求將在新選項卡中打開。
6. Using interceptor to read and write cookies
使用攔截器讀寫cookie
與原生應用程序不同,Chrome應用程序本身不能處理Cookie。
你可以使用攔截器擴展來克服這個。
通過攔截器,您可以檢索特定域中設置的Cookie,並在發送請求時包含Cookie。
<本地安裝的Postman不存在需要安裝interceptor>
1.確保攔截器在Postman中啟用 - 檢查右上角。
2.在測試部分,您可以使用“responseCookies”對象。
這將返回一個cookie對象數組。
要檢索特定的名稱,
請使用“postman.getResponseCookie(cookieName)”。
這將返回一個cookie對象。
每個Cookie對象將包含以下屬性:
domain,hostOnly,httpOnly,name,path,secure,session,storeId,value
Setting Cookies
1.確保攔截器已啟用。
2.在Headers部分包含“Cookie”頭
例如。Cookie:name = value; 2 =值2
3.發送請求。您設置的Cookie將隨您的請求一起發送到Chrome。
7. Capturing requests (Chrome app)
抓取請求(Chrome應用)
Postman Interceptor
Postman Interceptor現在可以直接從Chrome捕獲請求並將其保存到Postman的歷史記錄。
這意味着您可以實時調試您的網絡應用程序API!
沒有必要安裝或配置代理。
還沒有任何代碼更改。
您可以根據正則表達式根據URL過濾請求。
如果您有一個網絡應用程序沒有已經建立的集合,
或者您只想調試應用程序正在使用的API,這將是一個巨大的節省時間。
在Chrome平台上構建,該功能可以在Windows,Linux,Mac和Chrome操作系統上輕松實現。
Here is what you have to do to get this working:
1. 從Chrome網上應用店安裝Postman(如果您還沒有)!
2. 安裝Interceptor擴展
3. 打開Postman
4. 單擊工具欄中的“攔截器”圖標,然后將切換切換到“開”
5. 瀏覽您的應用程序或您的網站並監視請求流。
攔截器通信的唯一實體是Postman,然后將其保存到您的歷史記錄中。
我們有開源的Interceptor,你可以在Github上找到代碼。
Postman將您所有的數據本地保存在IndexedDB中。
8. Capturing requests (Native App) 捕獲請求(Native App)
In-app Proxy 應用程式內Proxy
那些熟悉Chrome應用程序代理的用戶可能會記住,
只需要設置代理服務器來捕獲Postman的請求所需的復雜步驟。
Postman本地應用程序大大簡化了此過程。沒有單獨的模塊/腳本需要運行 - 代理是內置在應用程序本身!
要啟動代理服務器,請單擊導航欄中的衛星圖標。這將打開“代理設置”窗口。有幾件事你可以在這里配置:
Port 端口(代理服務器應該聽的) - 讓我們現在就離開這個5555。
Target 目標(捕獲的請求應放在何處) - 您可以選擇在歷史記錄中流式傳輸,也可以將其保存在集合中。
Filters
“過濾器”選項卡具有更多選項,
可讓您僅配置要捕獲的某些HTTP方法或URL模式。
你可以探索,如果你喜歡,但默認值應該做的很好。
點擊“Connect”。您應該會看到一條通知,指示代理服務器處於打開狀態。
現在我們需要配置我們的瀏覽器或系統來通過代理路由請求。
Handling redirects 處理重定向
默認情況下,Postman將自動跟蹤所有301/302響應中的位置標題。
要禁用此行為,您可以將自動跟蹤重定向設置設置為否。
這樣可以防止返回300系列響應的請求被自動重定向。
如果您使用Chrome應用,則必須安裝Interceptor才能使該功能正常工作。
Sending requests to URLs with self signed SSLs
將請求發送到具有自簽名SSL的URL
自簽名證書不由受信任的機構驗證。
因此,通過Postman訪問API端點,可能會導致錯誤。
以下是使用自簽名SSL的說明。
確保您已經驗證了證書所在的IP。
這只能用於已驗證的IP地址。
此方法也適用於localhost的證書。
確保生成證書時證書的通用名稱是localhost。
Ignoring SSL warnings 忽略SSL警告
在本地應用程序中,您可以選擇完全忽略SSL證書。
如果您的應用程序在使用無效證書的網址(例如使用不同的CNAME)時遇到抱怨),
則可能需要執行此操作。
1. 轉到“設置”窗口,然后轉到“常規”選項卡。
2. 將SSL certificate verification設置更改為關閉。
3. 重新啟動應用程序
Extracting data from responses and chaining requests
從響應和鏈接請求中提取數據
您可以使用測試腳本從響應和鏈接請求中提取數據。
測試腳本在沙箱內運行,Postman提供postman對象與主要Postman上下文交互。
您應該從響應中提取值並將其保存在環境或全局變量中。
環境和全局變量讓您跟蹤影響API狀態的所有內容。
您將使用API的常見變量的一些示例是會話令牌和用戶標識。
Some examples of common variables you would use with an API are session tokens and user IDs.
Making SOAP requests
SOAP 簡單對象訪問協議
簡單對象訪問協議是交換數據的一種協議規范,
是一種輕量的、簡單的、基於XML(標准通用標記語言下的一個子集)的協議,
它被設計成在WEB上交換結構化的和固化的信息
要使用Postman進行SOAP請求,
1.將SOAP端點作為URL。如果您正在使用WSDL,則將WSDL的路徑作為URL。
2.將請求方法設置為POST。
3.打開原始編輯器,將主體類型設置為“text / xml”。
4.在請求體中,SOAP Envelope,Header和Body標簽根據需要。
首先給出必要的SOAP信封標簽,並定義所有的命名空間。給SOAP頭和身體。
應在SOAP體中指定SOAP方法(操作)的名稱。
Creating cURL commands in Postman
在Postman中創建cURL命令
要在Postman中創建一個cURL命令,
1. 按照通常的要求,在Postman構建器中創建一個請求.
點擊代碼圖標 Generate Code
從下拉菜單中選擇cURL。
There’s your cURL command!
Importing cURL commands to Postman
將cURL命令導入Postman
JSON / XML編輯器
Postman使用精彩的Ace Editor來渲染JavaScript,JSON和XML。
這里是所有使用的地方:
1. Pre-request scripts and test scripts
預請求腳本和測試腳本
2. Raw body input
3. JSON/XML/HTML “Pretty view”
JSON / XML / HTML“漂亮視圖”
Generating code snippets 生成代碼段
一旦您確定並將您的請求保存在Postman中,
您可能希望從您自己的應用程序發出相同的請求。
Postman可以讓您以各種語言和框架生成代碼段,從而幫助您執行此操作。
您需要點擊藍色發送按鈕下的生成代碼鏈接才能訪問此功能。
Selecting a language
使用下拉菜單選擇語言。
語言有多種選擇 - 這可以讓您選擇不同的框架來提供您的請求。
Postman的本機應用程序提供了一個Cookie管理器,可讓您編輯與每個域相關聯的Cookie。
要打開Cookie管理器,請單擊“發送”按鈕下的“Menerage Cookie”鏈接。
這將打開Cookie管理器窗口。這將向您顯示一個域名列表和與之相關的Cookie
Create a cookie
創建一個cookie
要添加新的Cookie,請點擊域的“添加Cookie”按鈕。
將創建一個預先生成的Cookie字符串
(根據https://tools.ietf.org/html/rfc6265#section-4.1),但您可以使用下面顯示的文本輸入進行編輯。
點擊“保存”將保存到相關域下的應用程序的Cookie存儲區。
您還可以通過設置“Cookie”標題來添加cookie,並在主郵箱窗口中將請求發送到適當的URL。
Adding a domain
如果要為域列表中不存在的域添加cookie,
可以通過http://在頂部的輸入框中輸入主機名(不帶端口或)來添加一個cookie 。
點擊“添加”按鈕將其添加到域列表中。
然后,您可以通過選擇該域添加Cookie,並按上述方式輸入新的Cookie值。
更新Cookie
要更新現有的Cookie,請從域列表中轉到域,然后單擊要編輯的cookie。
您可以編輯任何屬性,然后點擊“保存”更新。
Working with client certificates
使用客戶端證書
postman的本機應用程序提供SSL證書管理器,可以讓您以每個域為基礎來查看/設置客戶端證書
要打開證書管理器,請單擊右上角的扳手圖標,選擇Settings
添加客戶端證書
要添加新的客戶端證書,請在Add Certificate證書管理器中單擊。
在該Host字段中,輸入要使用該證書的請求URL的域(無協議)。例如:echo.getpostman.com
您還可以在該Port字段中指定與該域關聯的自定義端口。這是可選的。如果為空,則將使用默認的HTTPS端口(443)。
在調用的字段中選擇您的客戶端證書文件CRT file。目前我們只支持CRT格式。支持其他格式(如PFX)即將推出。
在調用的字段中選擇客戶端證書密鑰文件KEY file。
如果您在生成客戶端證書時使用密碼,則需要在該Passphrase字段中提供密碼。這是可選的。
一旦你完成,點擊Add。
一旦你的證書被添加,它應該出現在證書管理器列表中。
注意:您不應該為同一個域設置多個證書。如果您設置了多個設置,則只會使用最后一個。
使用證書
如果添加到客戶端證書,則不必執行任何額外的步驟來使用客戶端證書Certificate Manager。
如果您向配置的域發出請求,則證書將自動與請求一起發送。(如果您通過HTTPS發出請求)
你可以驗證這一點。為此,打開您的Postman控制台(Cmd / Ctrl + Alt + C)。
您可以在此處閱讀有關控制台的更多信息。應該開一個新窗口。
現在,發送請求https://echo.getpostman.com/get,
保持Postman控制台的打開。
請注意,我們正在使用它https來確保發送證書。
響應到達后,切換到Postman控制台。
你應該看到你的請求。如果您擴展您的請求,您應該可以看到哪個證書與請求一起發送。
刪除證書
要刪除證書,可以使用Remove Certificate證書的旁邊的按鈕Certificate Manager
編輯證書
一旦設置,您將無法編輯證書。要更改它,您必須刪除以前的證書並添加一個新的證書。