mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-24 20:08:00 +00:00
refactor: clean code
This commit is contained in:
@@ -204,7 +204,7 @@ func convertPEMToPFX(certificate string, privateKey string, password string) ([]
|
||||
|
||||
pfxData, err := pkcs12.LegacyRC2.Encode(privkey, cert, nil, password)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to encode as pfx %w", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return pfxData, nil
|
||||
|
Reference in New Issue
Block a user