File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/stackable-webhook/src/tls Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ impl CertificateResolver {
120120 CertificateAuthority :: new_with ( ca_key, rand:: random :: < u64 > ( ) , WEBHOOK_CA_LIFETIME )
121121 . context ( CreateCertificateAuthoritySnafu ) ?;
122122
123- let certificate = ca
123+ let certificate_pair = ca
124124 . generate_ecdsa_leaf_certificate (
125125 "Leaf" ,
126126 "webhook" ,
@@ -129,17 +129,17 @@ impl CertificateResolver {
129129 )
130130 . context ( GenerateLeafCertificateSnafu ) ?;
131131
132- let certificate_der = certificate
132+ let certificate_der = certificate_pair
133133 . certificate_der ( )
134134 . context ( EncodeCertificateDerSnafu ) ?;
135- let private_key_der = certificate
135+ let private_key_der = certificate_pair
136136 . private_key_der ( )
137137 . context ( EncodePrivateKeyDerSnafu ) ?;
138138 let certificate_key =
139139 CertifiedKey :: from_der ( vec ! [ certificate_der] , private_key_der, & tls_provider)
140140 . context ( DecodeCertifiedKeyFromDerSnafu ) ?;
141141
142- Ok ( ( certificate . certificate ( ) . clone ( ) , Arc :: new ( certificate_key) ) )
142+ Ok ( ( certificate_pair . certificate ( ) . clone ( ) , Arc :: new ( certificate_key) ) )
143143 } )
144144 . await
145145 . context ( TokioSpawnBlockingSnafu ) ?
You can’t perform that action at this time.
0 commit comments