mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
Docs: SAML refactoring docs (#49039)
* moved around and made it a bit more clearer * Update docs/sources/enterprise/saml/troubleshoot-saml.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Update docs/sources/enterprise/saml/troubleshoot-saml.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * removed unnessecary if statement * updated troubleshooting Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
This commit is contained in:
parent
6397b34f8b
commit
0f4c3f7805
@ -53,20 +53,9 @@ The base64-encoded values (`key.pem.base64, cert.pem.base64` files) are then use
|
|||||||
|
|
||||||
The keys you provide should look like:
|
The keys you provide should look like:
|
||||||
|
|
||||||
It should look like:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
-----BEGIN PRIVATE KEY-----
|
-----BEGIN PRIVATE KEY-----
|
||||||
...
|
...
|
||||||
...
|
...
|
||||||
-----END PRIVATE KEY-----
|
-----END PRIVATE KEY-----
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have a key that looks like:
|
|
||||||
|
|
||||||
```
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
...
|
|
||||||
...
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
```
|
|
||||||
|
@ -34,6 +34,31 @@ We only support one private key format: PKCS#8.
|
|||||||
|
|
||||||
The keys may be in a different format (PKCS#1 or PKCS#12); in that case, it may be necessary to convert the private key format.
|
The keys may be in a different format (PKCS#1 or PKCS#12); in that case, it may be necessary to convert the private key format.
|
||||||
|
|
||||||
|
The following command creates a pkcs8 key file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ openssl pkcs8 -topk8 -nocrypt -in <yourkey> -out private.pem
|
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Convert** the private key format to base64
|
||||||
|
|
||||||
|
The following command converts keys to base64 format.
|
||||||
|
|
||||||
|
Base64-encode the cert.pem and key.pem files:
|
||||||
|
(-w0 switch is not needed on Mac, only for Linux)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ base64 -w0 key.pem > key.pem.base64
|
||||||
|
$ base64 -w0 cert.pem > cert.pem.base64
|
||||||
|
```
|
||||||
|
|
||||||
|
The base64-encoded values (`key.pem.base64, cert.pem.base64` files) are then used for certificate and private_key.
|
||||||
|
|
||||||
|
The keys you provide should look like:
|
||||||
|
|
||||||
|
```
|
||||||
|
-----BEGIN PRIVATE KEY-----
|
||||||
|
...
|
||||||
|
...
|
||||||
|
-----END PRIVATE KEY-----
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user