Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
61db7fd7
Commit
61db7fd7
authored
Feb 18, 2020
by
Dennis Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes bug #712: expired SSL certs for pistache unit tests.
parent
3e716b45
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
185 additions
and
126 deletions
+185
-126
tests/certs/client.crt
tests/certs/client.crt
+15
-22
tests/certs/client.key
tests/certs/client.key
+25
-25
tests/certs/new-certs.sh
tests/certs/new-certs.sh
+58
-0
tests/certs/rootCA.crt
tests/certs/rootCA.crt
+17
-30
tests/certs/rootCA.key
tests/certs/rootCA.key
+28
-0
tests/certs/server.crt
tests/certs/server.crt
+15
-23
tests/certs/server.key
tests/certs/server.key
+25
-25
tests/https_server_test.cc
tests/https_server_test.cc
+2
-1
No files found.
tests/certs/client.crt
View file @
61db7fd7
-----BEGIN CERTIFICATE-----
MIIEGDCCAgACFHfAvNGw3RuLYzDBMNJ2QTYQq66pMA0GCSqGSIb3DQEBCwUAMEwx
CzAJBgNVBAYTAkZSMQ8wDQYDVQQIDAZGcmFuY2UxDjAMBgNVBAcMBVBhcmlzMQ0w
CwYDVQQKDARFeDBkMQ0wCwYDVQQDDARFeDBkMB4XDTE4MTAwNjE0MzY0OFoXDTIw
MDIxODE0MzY0OFowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClN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HrfdlEuCcNch8X2wP+ETkTHmODVe50I9KF
rnPEdYLgE4uyUDlIQjSlFaMqmpAP0aS5T3TNixignLnpCSYm/ihKRpw=
-----END RSA PRIVATE KEY-----
tests/certs/new-certs.sh
0 → 100755
View file @
61db7fd7
#!/bin/bash
# Run this script to create new SSL certs for pistache HTTPS unit tests.
# Passphrases are disabled on all keys. Do not use these certs/keys in
# production; they are for unit tests only!
# Requires openssl-1.1.1 or greater (for 'extensions' support).
DAYS
=
3650
BITS
=
2048
trap
"echo 'aborting'; exit 255"
2 3
log
()
{
echo
-e
"
\x
1b[32m
$1
\x
1b[0m"
}
log
"Create rootCA.key and rootCA.crt"
openssl req
-x509
-newkey
rsa:
${
BITS
}
-sha256
-days
${
DAYS
}
-nodes
\
-keyout
rootCA.key
-out
rootCA.crt
-subj
"/CN=pistache.io"
\
-addext
"subjectAltName=IP:127.0.0.1"
||
exit
$?
log
"Create server.key"
openssl genrsa
-out
server.key
${
BITS
}
||
exit
$?
log
"Create server.csr"
openssl req
-new
-sha256
-key
server.key
\
-subj
"/C=US/ST=WA/O=Pistache/CN=server"
\
-out
server.csr
||
exit
$?
log
"Create server.crt"
openssl x509
-req
-in
server.csr
-days
${
DAYS
}
-sha256
\
-CA
rootCA.crt
-CAkey
rootCA.key
-set_serial
01
\
-extensions
server
-out
server.crt
||
exit
$?
rm
-f
server.csr
||
exit
$?
log
"Create client.key"
openssl genrsa
-out
client.key
${
BITS
}
||
exit
$?
log
"Create client.csr"
openssl req
-new
-sha256
-key
client.key
\
-subj
"/C=US/ST=WA/O=Pistache/CN=client"
\
-out
client.csr
||
exit
$?
log
"Create client.crt"
openssl x509
-req
-in
client.csr
-days
${
DAYS
}
-sha256
\
-CA
rootCA.crt
-CAkey
rootCA.key
-set_serial
02
\
-extensions
client
-out
client.crt
||
exit
$?
rm
-f
client.csr
||
exit
$?
log
"Verify server certificate"
openssl verify
-purpose
sslserver
-CAfile
rootCA.crt server.crt
||
exit
$?
log
"Verify client certificate"
openssl verify
-purpose
sslclient
-CAfile
rootCA.crt client.crt
||
exit
$?
log
"done"
tests/certs/rootCA.crt
View file @
61db7fd7
-----BEGIN CERTIFICATE-----
MIIFeTCCA2GgAwIBAgIUHJxNleRdm76cz7XwfOG7vz+YGB0wDQYJKoZIhvcNAQEL
BQAwTDELMAkGA1UEBhMCRlIxDzANBgNVBAgMBkZyYW5jZTEOMAwGA1UEBwwFUGFy
aXMxDTALBgNVBAoMBEV4MGQxDTALBgNVBAMMBEV4MGQwHhcNMTgxMDA2MTQzMjAw
WhcNMjEwNzI2MTQzMjAwWjBMMQswCQYDVQQGEwJGUjEPMA0GA1UECAwGRnJhbmNl
MQ4wDAYDVQQHDAVQYXJpczENMAsGA1UECgwERXgwZDENMAsGA1UEAwwERXgwZDCC
AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAOMDCpIbXHWk1VP6guvlIdMq
QSM6pDFoOcSfj4P2ezmfgp+gFP3nt0FFWMZtMtpbkOjpe8fs9B1QBzXUoWlmtDrQ
ChqVR9VHROghzRDn4cJN1fP415F/ZG7lmPvri4puk/5NbhHX3XtoZIAoLqbFvpfR
L/MSnFUkMcw7eedsw9qFl7s/kvOzeiQjiXCgtmSk6XZ2qW4r28KhB7eugFRoTrFw
HzE8UDvA5NNF4oOs+U5shhBw99qBRRlL8Kda8l78VQraxpXhgjTVpAqdJZnmicb8
PnBJJ5hyNDbBYrXF9LCK8heJZMDJCzHSkVaHO2umas7rtXLtdGfEW/zQheHGvRFz
3TrAcmzKIWGoRi4dyBMmxVAV86lLuMmomannkd5WE8sPzPb7QJrBDGI4rs2qjyVQ
gads2PuThkoF2gP18yLpCUbFYKp5lTgnmFXM6SsLRfqDEqcdZkQEZK532JPIuWmt
wuwCWaqTkCAJXTs6McKa+keTBDnCXOnkxVl6T6ubj+9YlMn9tv7U5Z84J5Ma46co
OQuIsAoI1Z22TG9qY7756bbaVqC17niffueZx0M1WkCq6v8mH9qB/54hgS5+c3pD
IgzxHHkLaR+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k5axrvLSHxbdDpF1zgr0BsLUn6Ag0uz974/
ska0kc/BAoGBAPUxRkzYQxTKW48WEb7b3xm292KNUY4OxQc4f5LDDsvWGhbJJzRI
QHnh8FKklyGDWX4QE2XqWriOGTJFDA8IxNBIkKs2Z6HRa8LygNPzJG897RC1skur
FFkjvs4yYKJMov6L0pOFnVWDnPNWJGFug3TENMVH8do+eePTRkAjAL7xAoGBAOo/
4iF7xyZcDOCymEhIxZU0fO44Vamm4mCVxlbMZ4MJ1e2nEK1vBn8VLaQmYsy0pFEV
I6WUzuOpw4b9/AagO0cEuh6AeXJV/FpyAylmk3b8M0CPpT1kzgUbaBXIj+2WoDdP
Lwplr6Clh56tbZLyqBkFnjcrHZC0MlDOODUpP5+dAoGAW/jSvOp2JytMstx9ZZFG
G3g1TYNi7x19LJs1x1BhkXZLLPbhPMxJWy60HdvdUNXbUN0o2ZbR1t5+dwvNXSpV
4ScHFSIAN4O9n0+loVtX9F5POXBeY+HVbSZqYSAmfVqv3TmHkIyTGsuWqPRMCzwQ
FVGv1byJ7Op4gEv00wQOOJECgYEAxFC9puohQNisQjPqw8mZLS5L9SlpQUEHP4LG
MkAkEAHSM9VreK4vd5m8InG5I23Qt9NLiJ1ptgq0PxHkgXkPtLkVcjKhlVzSnMoo
NC4vL+y010qLZSRyNH1/gaIQXUF7DF9kQQZvZebT/fvCdQDAOBgpPHr50Cf0cxwg
pwzmsVECgYA9R/bNIUjLDvk3TQnOcja/EqPPYp82NUexdvVwvOurhx7JRhrICnx9
eRdwgthhld5QCmVos++rLKSAdCgqwJE2rzAtoXJP5USUdvWE1dFZf/WX0jf27Vwc
pkko29lbrCJLe0ilXw0PQSotdFOS7dICpPJqOqF7QVPThT8/57Fd/g==
-----END RSA PRIVATE KEY-----
tests/https_server_test.cc
View file @
61db7fd7
...
...
@@ -10,7 +10,8 @@
using
namespace
Pistache
;
/* _ALL_ those tests should fail around 2020, when the certificates will expire
/* Should these tests fail, please re-run "./new-certs.sh" from the "./certs"
* directory.
*/
static
size_t
write_cb
(
void
*
contents
,
size_t
size
,
size_t
nmemb
,
void
*
userp
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment