Skip to content

Commit

Permalink
r/cert: use modern PKCS12 encryption
Browse files Browse the repository at this point in the history
This just updates our call for PKCS encoding to use the Modern2023
encryption settings in go-pkcs12; this should ensure secure encryption
and compatibility with modern OpenSSL et al.
  • Loading branch information
vancluever committed Jul 31, 2024
1 parent a3c30be commit d343e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/acme_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func bundleToPKCS12(bundle, key []byte, password string) ([]byte, error) {
return nil, err
}

pfxData, err := pkcs12.Encode(rand.Reader, pk, cb[0], cb[1:], password)
pfxData, err := pkcs12.Modern2023.Encode(pk, cb[0], cb[1:], password)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d343e35

Please sign in to comment.