mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 13:25:38 +08:00
create push service from TLS cert if there's no cert in the DB (#284)
This commit is contained in:
@@ -225,7 +225,7 @@ func (cmd *mdmcertCommand) runUpload(args []string) error {
|
||||
}
|
||||
|
||||
func loadPushCerts(certPath, keyPath, keyPass string) (cert, key []byte, err error) {
|
||||
isP12 := (keyPath == "" && keyPass != "")
|
||||
isP12 := filepath.Ext(certPath) == ".p12"
|
||||
if isP12 {
|
||||
pkcs12Data, err := ioutil.ReadFile(certPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user