Skip to content

Instantly share code, notes, and snippets.

View silverark's full-sized avatar

Matthew Nelson - Silverark silverark

View GitHub Profile
@silverark
silverark / gist:af98e3ef295b28f0fa7a4a160bdf0c87
Created March 25, 2025 11:59
Android Management API PKCS12 certificate INVALID_VALUE
# tl/dr
In the android management API, for a PKCS12 certififcate you have to use legacy encryption: 3DES_CBC for keys, RC2_CBC for certs
## Details
In the Android Management API you are able to set the network confguration in a policy by using the Open network Configuration (ONC). For an EAP-TLS network you need to set a PKCS12 certificate for the client.
In the compliance details for the policy I was receiving the warning "INVALID_VALUE" for item "onc.Certificates[0]" which related to the clients PKCS12 certificate.
@silverark
silverark / gist:6fa251222f4b3cab854114ea05083609
Created March 11, 2021 16:56
Janus webrtc media info event
# Janus Event
The below
```
{
"emitter": "JANUS",
"type": 32,
"subtype": 3,
"timestamp": 1609858592641297,
@silverark
silverark / golang-gmail-service-account.go
Created October 2, 2019 21:56
Access Gmail account with a service Account in Go (Golang)
package main
import (
"fmt"
"google.golang.org/api/gmail/v1"
"io/ioutil"
"log"
"golang.org/x/net/context"
"golang.org/x/oauth2/google"