Skip to content

Commit

Permalink
Update client_certificate_sample.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS authored Jan 4, 2024
1 parent 7d8e369 commit c36176d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/tests/devapps/client_certificate_sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func createAppWithCert() *confidential.Client {

// This extracts our public certificates and private key from the PEM file. If it is
// encrypted, the second argument must be password to decode.
// IMPORTANT SECURITY NOTICE: never store passwords in code. The recommended pattern is to keep the certificate in a vault (e.g. Azure KeyVault)
// and to download it when the application starts.
certs, privateKey, err := confidential.CertFromPEM(pemData, "")
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit c36176d

Please sign in to comment.