You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Update certificate reference with runtime SDK examples
Expand the runtime certificate section with examples for the gl-sdk
(Python, Kotlin, Swift, JavaScript) using the new DeveloperCert type
and Scheduler builder, plus gl-client direct usage examples.
Copy file name to clipboardExpand all lines: docs/src/reference/certs.md
+82-13Lines changed: 82 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,32 +53,101 @@ warning: Set "GL_CUSTOM_NOBODY_KEY" and "GL_CUSTOM_NOBODY_CERT" to use a custom
53
53
54
54
In case you do not want to provide the certificate at compile-time,
55
55
e.g., because you are using pre-compiled language bindings, you can
56
-
also provide the certificates at runtime. The following code snippets show how to construct a `Signer` and a `Scheduler` instance with the certificates:
56
+
also provide the certificates at runtime.
57
+
58
+
### Using the SDK (recommended)
59
+
60
+
The SDK (`gl-sdk`) provides a `DeveloperCert` type and a builder
61
+
method on the `Scheduler`. Create a `DeveloperCert` from the PEM
62
+
bytes of the certificate and key, then pass it to the scheduler using
63
+
`with_developer_cert()`:
64
+
65
+
=== "Python"
66
+
```python
67
+
import glsdk
68
+
69
+
# Load cert and key bytes (e.g., from files or secure storage)
0 commit comments