Coder Social home page Coder Social logo

acavella / trustedcore-ra Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.48 MB

A custom registration authority client to be used with the ISC CertAgent RAMI API, which allows for the automated generation of single or bulk x.509 certificates.

License: MIT License

Shell 100.00%
certificate-authority isc pki ra rami x509 certagent

trustedcore-ra's Issues

Log lines displaying carriage return at eol

printf lines have visible carriage return at end of line \n

2022-12-31T17:09:59Z 166414 [info] Trusted Core: RA v0.9.1 started\n
2022-12-31T17:09:59Z 166414 [info] Configuration file loaded sucessfully, /home/acavella/test2/trustedcore-ra-develop/conf/local.conf
2022-12-31T17:09:59Z 166414 [info] Input file is valid\n
2022-12-31T17:09:59Z 166414 [info] Completed reading input file, 54 bytes, input/input-example.txt\n

Replace echo w/ printf

Describe the problem as it relates to the enhancement:
echo acts inconsistently across distributions and shells.

Describe the solution:
Replace echo statements with printf throughout.

Additional context:
n/a

OpenSSL can't find distinguished name in config

Versions

TrustedCore-RA ver. 1.0.0

Platform

  • OS and version: CentOS 7.9
  • Additional: OpenSSL 1.0.2k-fips

Expected behavior

Generate CSR from private key.

Actual behavior / bug

OpenSSL errors during CSR process.

Additional context

2023-01-03T23:22:15Z 24352 [info] Generated RSA private key, /home/acavella/trustedcore-ra/output/YXAVJJ4OPQ/YXAVJJ4OPQ.key with a subject YXAVJJ4OPQ
unable to find 'distinguished_name' in config
problems making Certificate Request
139865373415312:error:0E06D06C:configuration file routines:NCONF_get_string:no value:conf_lib.c:324:group=req name=distinguished_name

Add debug output

Describe the problem as it relates to the enhancement:
Collecting version information and output necessary for debugging requires the user to provide these details based on their own knowledge/understanding.

Describe the solution:
Add "--debug" argument to command.

Debug output should provide:

  • TrustedCore-RA Version
  • Operating System and Version
  • Requirement Versions
    • OpenSSL
    • sed
    • etc...

Additional context:
n/a

Implement Curl Client Authentication via PKCS12

Is your feature request related to a problem? Please describe.
Current operation of curl requires encrypted PKCS12 be decrypted and presented as PEM to authenticate to RAMI API, leaving the private key exposed on the system.

Describe the solution you'd like
Utilize PKCS12 for curl client authentication, decrypt PKCS12 on the fly. Either prompt user for PKCS12 password or store secret securely.

Additional context

Unbound variable ${i}

2022-12-31T17:08:28Z 166367 [info] Generating private key and csr for each subject\n
./tcra.sh: line 113: i: unbound variable

openssl not found

./tcra.sh: line 96: 0: command not found
2022-12-31T17:05:44Z 166089 [error] Command openssl was not found, exiting\n

Ut8string used for CN

CSR generates CN as utf8string and remaining parameter's as printablestring. CertAgent CA subject is printableString and therefore expects submitted CN to be printableString

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.