1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/builds-source-secret-combinations-basic-auth-ca.adoc

27 lines
771 B
Plaintext

// Module included in the following assemblies:
//
* builds/creating-build-inputs.adoc
[id="builds-source-secret-combinations-basic-auth-ca_{context}"]
= Creating a basic authentication secret with a CA certificate
You can combine the different methods for creating source clone secrets for your specific needs, such as a secret that combines a basic authentication and CA certificate.
.Prerequisites
* Basic authentication credentials
* CA certificate
.Procedure
* Create a basic authentication secret with a CA certificate, run:
+
[source,terminal]
----
$ oc create secret generic <secret_name> \
--from-literal=username=<user_name> \
--from-literal=password=<password> \
--from-file=ca-cert=</path/to/file> \
--type=kubernetes.io/basic-auth
----