mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Allow mTLS for mysql secrets engine (#9181)
* Extract certificate helpers for use in non-mongodb packages * Created mTLS/X509 test for MySQL secrets engine. * Ensure mysql username and passwords aren't url encoded * Skip mTLS test for circleCI
This commit is contained in:
		| @@ -10,9 +10,7 @@ import ( | ||||
| 	"crypto/x509" | ||||
| 	"crypto/x509/pkix" | ||||
| 	"encoding/pem" | ||||
| 	"io/ioutil" | ||||
| 	"math/big" | ||||
| 	"os" | ||||
| 	"strings" | ||||
| 	"testing" | ||||
| 	"time" | ||||
| @@ -192,18 +190,6 @@ func (cert certificate) CombinedPEM() []byte { | ||||
| 	return bytes.Join([][]byte{cert.privKey.pem, cert.pem}, []byte{'\n'}) | ||||
| } | ||||
|  | ||||
| // //////////////////////////////////////////////////////////////////////////// | ||||
| // Writing to file | ||||
| // //////////////////////////////////////////////////////////////////////////// | ||||
| func writeFile(t *testing.T, filename string, data []byte, perms os.FileMode) { | ||||
| 	t.Helper() | ||||
|  | ||||
| 	err := ioutil.WriteFile(filename, data, perms) | ||||
| 	if err != nil { | ||||
| 		t.Fatalf("Unable to write to file [%s]: %s", filename, err) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // //////////////////////////////////////////////////////////////////////////// | ||||
| // Helpers | ||||
| // //////////////////////////////////////////////////////////////////////////// | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lauren Voswinkel
					Lauren Voswinkel