Skip to content

Commit 5718baf

Browse files
committed
Merge pull request openresty#38 from ghedo/typo
docs: fix formated -> formatted typo
2 parents fa45107 + 23d9bde commit 5718baf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ngx/ssl.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cert_pem_to_der
137137

138138
**context:** *any*
139139

140-
Converts the PEM-formated SSL certificate chain data into the DER format (for later uses
140+
Converts the PEM-formatted SSL certificate chain data into the DER format (for later uses
141141
in the [set_der_cert](#set_der_cert)
142142
function, for example).
143143

@@ -147,7 +147,7 @@ It is known that the `openssl` command-line utility may not convert the whole SS
147147
certificate chain from PEM to DER correctly. So always use this Lua function to do
148148
the conversion. You can always use libraries like [lua-resty-lrucache](https://github.com/openresty/lua-resty-lrucache#readme)
149149
and/or ngx_lua APIs like [lua_shared_dict](https://github.com/openresty/lua-nginx-module#lua_shared_dict)
150-
to do the caching of the DER-formated results, for example.
150+
to do the caching of the DER-formatted results, for example.
151151

152152
This function can be called in whatever contexts.
153153

@@ -159,7 +159,7 @@ set_der_cert
159159

160160
**context:** *ssl_certificate_by_lua**
161161

162-
Sets the DER-formated SSL certificate chain data for the current SSL connection. Note that
162+
Sets the DER-formatted SSL certificate chain data for the current SSL connection. Note that
163163
the DER data is
164164
directly in the Lua string argument. *No* external file names are supported here.
165165

@@ -177,7 +177,7 @@ priv_key_pem_to_der
177177

178178
**context:** *any*
179179

180-
Converts the PEM-formated SSL private key data into the DER format (for later uses
180+
Converts the PEM-formatted SSL private key data into the DER format (for later uses
181181
in the [set_der_priv_key](#set_der_priv_key)
182182
function, for example).
183183

@@ -199,7 +199,7 @@ set_der_priv_key
199199

200200
**context:** *ssl_certificate_by_lua**
201201

202-
Sets the DER-formated prviate key for the current SSL connection.
202+
Sets the DER-formatted prviate key for the current SSL connection.
203203

204204
Returns `true` on success, or a `nil` value and a string describing the error otherwise.
205205

0 commit comments

Comments
 (0)