Skip to content

Commit

Permalink
Fix more review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Dec 18, 2022
1 parent f44ed8c commit 56be683
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 171 deletions.
2 changes: 1 addition & 1 deletion app-store-connect/src/bundle_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub struct BundleIdCreateRequestAttributes {
pub platform: String,
}

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, clap::ValueEnum)]
pub enum BundleIdPlatform {
Ios,
MacOs,
Expand Down
4 changes: 2 additions & 2 deletions app-store-connect/src/certs_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::io::Write;
use std::path::Path;
use x509_certificate::{InMemorySigningKeyPair, Sign, X509CertificateBuilder};

pub fn generate_key(api_key: &Path, ty: CertificateType, pem: &Path) -> Result<()> {
pub fn generate_signing_certificate(api_key: &Path, ty: CertificateType, pem: &Path) -> Result<()> {
let secret = RsaPrivateKey::new(&mut OsRng, 2048)?;
let key = InMemorySigningKeyPair::from_pkcs8_der(secret.to_pkcs8_der()?.as_bytes())?;
let mut builder = X509CertificateBuilder::new(key.key_algorithm().unwrap());
Expand Down Expand Up @@ -119,7 +119,7 @@ pub struct CertificateCreateRequestAttributes {
pub csr_content: String,
}

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, clap::ValueEnum)]
pub enum CertificateType {
Development,
Distribution,
Expand Down
Loading

0 comments on commit 56be683

Please sign in to comment.