mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-15 03:53:48 +02:00
Move test certificate files to their appropriate location
This commit is contained in:
parent
595dc01ec0
commit
57eb1fd94d
3 changed files with 0 additions and 4 deletions
|
@ -3,9 +3,6 @@
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-include_lib("public_key/include/public_key.hrl").
|
-include_lib("public_key/include/public_key.hrl").
|
||||||
|
|
||||||
-define(exampleCertFile, lists:flatten([code:lib_dir(epp_proxy, priv),
|
|
||||||
"epp-proxy-test.crt.pem"])).
|
|
||||||
|
|
||||||
der_certificate_test() ->
|
der_certificate_test() ->
|
||||||
PemEntries = public_key:pem_decode(certificate_pem()),
|
PemEntries = public_key:pem_decode(certificate_pem()),
|
||||||
{value, CertEntry} = lists:keysearch('Certificate', 1, PemEntries),
|
{value, CertEntry} = lists:keysearch('Certificate', 1, PemEntries),
|
||||||
|
@ -31,7 +28,6 @@ test_certificate() ->
|
||||||
Decoded = public_key:pkix_decode_cert(DerCert, otp),
|
Decoded = public_key:pkix_decode_cert(DerCert, otp),
|
||||||
Decoded.
|
Decoded.
|
||||||
|
|
||||||
%% Contents from fixtures/epp-proxy-test.crt.pem file
|
|
||||||
certificate_pem() ->
|
certificate_pem() ->
|
||||||
<<"-----BEGIN CERTIFICATE-----
|
<<"-----BEGIN CERTIFICATE-----
|
||||||
MIIGWzCCBEOgAwIBAgICEAEwDQYJKoZIhvcNAQELBQAwgaoxCzAJBgNVBAYTAkVF
|
MIIGWzCCBEOgAwIBAgICEAEwDQYJKoZIhvcNAQELBQAwgaoxCzAJBgNVBAYTAkVF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue