[debian-mysql] Bug#927289: Bug#927289: mariadb-server-10.3: SSL error: Unable to get private key

Pietsch Michael Pietsch at dsm.museum
Thu Sep 12 11:55:20 BST 2019


In case someone stumbles on this with the error message
SSL error: Unable to get private key from '/some/path/to/private.key'
0 [Warning] Failed to setup SSL
0 [Warning] SSL error: Unable to get private key

Make sure the format of the private key is in PKCS#1 format ("-----BEGIN RSA 
PRIVATE KEY-----" at start of the private key) and not PKCS#8 format 
("-----BEGIN PRIVATE KEY-----"). The PKCS#8 format is default since Buster I 
think when using "openssl req -newkey ..."
It seems like yaSSL doesn't understand that format...

To convert it use:
openssl rsa -in key.pem -out key.pem

Best regards

Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6415 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20190912/c38232d9/attachment.bin>


More information about the pkg-mysql-maint mailing list