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 {
120
120
CertificateAuthority :: new_with ( ca_key, rand:: random :: < u64 > ( ) , WEBHOOK_CA_LIFETIME )
121
121
. context ( CreateCertificateAuthoritySnafu ) ?;
122
122
123
- let certificate = ca
123
+ let certificate_pair = ca
124
124
. generate_ecdsa_leaf_certificate (
125
125
"Leaf" ,
126
126
"webhook" ,
@@ -129,17 +129,17 @@ impl CertificateResolver {
129
129
)
130
130
. context ( GenerateLeafCertificateSnafu ) ?;
131
131
132
- let certificate_der = certificate
132
+ let certificate_der = certificate_pair
133
133
. certificate_der ( )
134
134
. context ( EncodeCertificateDerSnafu ) ?;
135
- let private_key_der = certificate
135
+ let private_key_der = certificate_pair
136
136
. private_key_der ( )
137
137
. context ( EncodePrivateKeyDerSnafu ) ?;
138
138
let certificate_key =
139
139
CertifiedKey :: from_der ( vec ! [ certificate_der] , private_key_der, & tls_provider)
140
140
. context ( DecodeCertifiedKeyFromDerSnafu ) ?;
141
141
142
- Ok ( ( certificate . certificate ( ) . clone ( ) , Arc :: new ( certificate_key) ) )
142
+ Ok ( ( certificate_pair . certificate ( ) . clone ( ) , Arc :: new ( certificate_key) ) )
143
143
} )
144
144
. await
145
145
. context ( TokioSpawnBlockingSnafu ) ?
You can’t perform that action at this time.
0 commit comments