You can create a secret using generic concepts in Openshift. You can create a secret in two ways in Openshift. One is from literals and another is from a file. I have attached the command below to create a secret from a file.
$ oc create secret generic mysecret --from-file htpasswd=myuser.txt -n myproj