mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-20 18:21:09 +01:00
* CLI changes for new mount tune config parameter allowed_managed_keys * Correct allowed_managed_keys description in auth and secrets * Documentation update for secrets and removed changes for auth * Add changelog and remove documentation changes for auth * removed changelog * Correct the field description * Replace - with : when listing certificate serials
12 lines
254 B
Go
12 lines
254 B
Go
package pki
|
|
|
|
import "strings"
|
|
|
|
func normalizeSerial(serial string) string {
|
|
return strings.Replace(strings.ToLower(serial), ":", "-", -1)
|
|
}
|
|
|
|
func denormalizeSerial(serial string) string {
|
|
return strings.Replace(strings.ToLower(serial), "-", ":", -1)
|
|
}
|